3
dP                 @   sf   d dl Z d dlmZ d dlmZ d dlmZ d dlZeje	Z
G dd de jZG dd deeZdS )	    N)ProvDocument)RoundTripTestCase)AllTestsBasec               @   s   e Zd Zdd ZdS )TestJSONSerializerc             C   s>   d}d| }t j|dd}|jdd }| j||jd d S )Nu   ’z{
    "prefix": {
        "ex": "http://www.example.org"
    },
    "entity": {
        "ex:unicode_char": {
            "prov:label": "%s"
        }
    }
}json)contentformatzex:unicode_charr   z
prov:label)r   ZdeserializeZ
get_recordZassertInZget_attribute)selfZunicode_charZjson_contentZprov_docZe1 r
   4/tmp/pip-build-7vycvbft/prov/prov/tests/test_json.pytest_decoding_unicode_value   s    z.TestJSONSerializer.test_decoding_unicode_valueN)__name__
__module____qualname__r   r
   r
   r
   r   r      s   r   c               @   s   e Zd ZdZdS )RoundTripJSONTestsr   N)r   r   r   ZFORMATr
   r
   r
   r   r   !   s   r   )ZunittestZ
prov.modelr   Zprov.tests.utilityr   Zprov.tests.test_modelr   logging	getLoggerr   loggerZTestCaser   r   r
   r
   r
   r   <module>   s   
