U
    kufR  ã                   @   sZ   d dl mZ d dlmZ d dlZd dlmZ dd„ Zdd„ Zej	 
d	d
dg¡dd„ ƒZdS )é    )ÚMapping)ÚPathN)ÚREGISTRYc                  C   s<   t  d¡} t| tƒst‚| d dks(t‚| d dks8t‚d S )Nz'http://json-schema.org/draft-07/schema#z$idÚtitlezCore schema meta-schema)r   ÚcontentsÚ
isinstancer   ÚAssertionError)Zschema© r	   úb/tmp/pip-unpacked-wheel-da23luvw/jsonschema_specifications/tests/test_jsonschema_specifications.pyÚtest_it_contains_metaschemas	   s    
r   c                   C   s   t  ¡ t kst‚d S )N)r   Zcrawlr   r	   r	   r	   r
   Útest_it_is_crawled   s    r   Úignored_relative_pathzschemas/.DS_Storezschemas/draft7/.DS_Storec                 C   sD   ddl }t|jƒj}||  }| ¡  zt| ¡ ƒ W 5 | ¡  X dS )z¾
    Ignore files like .DS_Store if someone has actually caused one to exist.

    We test here through the private interface as of course the global has
    already loaded our schemas.
    r   N)Újsonschema_specificationsr   Ú__file__ÚparentÚtouchÚunlinkÚlistZ_schemas)r   r   ÚpackageZignoredr	   r	   r
   Útest_it_copes_with_dotfiles   s    r   )Úcollections.abcr   Úpathlibr   Zpytestr   r   r   r   ÚmarkZparametrizer   r	   r	   r	   r
   Ú<module>   s   þ