3 �}:a7# � @ s� d Z ddlZddlmZ ddlmZmZ ejd�Zejd�Zejd�Z ej d�Zej d �Zej d �Z G dd� dej�ZG d d� dej�ZG dd� dej�ZG dd� dej�Zedkr�ej� dS )zTests for josepy.jwa.� N)�mock)�errors� test_utilzrsa256_key.pemzrsa512_key.pemzrsa1024_key.pemzec_p256_key.pemzec_p384_key.pemzec_p521_key.pemc @ sH e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dS )�JWASignatureTestz"Tests for josepy.jwa.JWASignature.c C s4 ddl m} G dd� d|�}|d�| _|d�| _d S )Nr )�JWASignaturec @ s e Zd Zdd� Zdd� ZdS )z'JWASignatureTest.setUp.<locals>.MockSigc S s t � �d S )N)�NotImplementedError)�self�key�msg� r �/usr/lib/python3.6/jwa_test.py�sign s z,JWASignatureTest.setUp.<locals>.MockSig.signc S s t � �d S )N)r )r r r �sigr r r �verify s z.JWASignatureTest.setUp.<locals>.MockSig.verifyN)�__name__� __module__�__qualname__r r r r r r �MockSig s r �Sig1�Sig2)� josepy.jwar r r )r r r r r r �setUp s zJWASignatureTest.setUpc C s | j | j| j� d S )N)�assertEqualr )r r r r �test_eq"