ķ
ĖjWc           @   s   d  d l  m Z d  d l Z d d d d d d d	 d
 d d d d d d d d d d d d d d d d d g Z i d d 6d d 6Z d  e f d!     YZ d S("   i˙˙˙˙(   t   TestCaseNs<   "A JSON payload should be an object or array, not a string."s   ["Unclosed array"s$   {unquoted_key: "keys must be quoted}s   ["extra comma",]s   ["double extra comma",,]s   [   , "<-- missing value"]s   ["Comma after the close"],s   ["Extra close"]]s   {"Extra comma": true,}s:   {"Extra value after close": true} "misplaced quoted value"s   {"Illegal expression": 1 + 2}s   {"Illegal invocation": alert()}s+   {"Numbers cannot have leading zeroes": 013}s   {"Numbers cannot be hex": 0x14}s"   ["Illegal backslash escape: \x15"]s    ["Illegal backslash escape: \'"]s"   ["Illegal backslash escape: \017"]s2   [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]s   {"Missing colon" null}s   {"Double colon":: null}s    {"Comma instead of colon", null}s!   ["Colon instead of comma": false]s   ["Bad value", truth]s   ['single quote']u$   ["AZ control characters in string"]s   why not have a string payload?i   s,   spec doesn't specify any nesting limitationsi   t   TestFailc           B   s   e  Z d    Z RS(   c         C   s   x t  t  D]s \ } } | d } | t k rB t j |  q n  y t j |  Wn t k
 rf q X|  j d j | |   q Wd  S(   Ni   s(   Expected failure for fail{0}.json: {1!r}(   t	   enumeratet   JSONDOCSt   SKIPSt   jsont   loadst
   ValueErrort   failt   format(   t   selft   idxt   doc(    (    sF   /home/wilkie/.pyenv/versions/2.7/lib/python2.7/json/tests/test_fail.pyt   test_failuresA   s    
(   t   __name__t
   __module__R   (    (    (    sF   /home/wilkie/.pyenv/versions/2.7/lib/python2.7/json/tests/test_fail.pyR   @   s   (   t   unittestR    R   R   R   R   (    (    (    sF   /home/wilkie/.pyenv/versions/2.7/lib/python2.7/json/tests/test_fail.pyt   <module>   s<   	
