;
Οβ"Ic               @   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 Gd    d! e  Z d S("   i    (   u   TestCaseNu<   "A JSON payload should be an object or array, not a string."u   ["Unclosed array"u$   {unquoted_key: "keys must be quoted}u   ["extra comma",]u   ["double extra comma",,]u   [   , "<-- missing value"]u   ["Comma after the close"],u   ["Extra close"]]u   {"Extra comma": true,}u:   {"Extra value after close": true} "misplaced quoted value"u   {"Illegal expression": 1 + 2}u   {"Illegal invocation": alert()}u+   {"Numbers cannot have leading zeroes": 013}u   {"Numbers cannot be hex": 0x14}u"   ["Illegal backslash escape: \x15"]u    ["Illegal backslash escape: \'"]u"   ["Illegal backslash escape: \017"]u2   [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]u   {"Missing colon" null}u   {"Double colon":: null}u    {"Comma instead of colon", null}u!   ["Colon instead of comma": false]u   ["Bad value", truth]u   ['single quote']u$   ["AZ control characters in string"]u   why not have a string payload?i   u,   spec doesn't specify any nesting limitationsi   c             B   s   |  Ee  Z d    Z d S(   c             C   s   x t  t  D]v \ } } | d } | t k o t j |  q n y t j |  Wn t k
 o Yq X|  j d | | f  q Wd  S(   Ni   u$   Expected failure for fail%d.json: %r(   u	   enumerateu   JSONDOCSu   SKIPSu   jsonu   loadsu
   ValueErroru   fail(   u   selfu   idxu   doc(    (    u1   /mit/python/lib/python3.0/json/tests/test_fail.pyu   test_failuresA   s     
N(   u   __name__u
   __module__u   test_failures(   u
   __locals__(    (    u1   /mit/python/lib/python3.0/json/tests/test_fail.pyu   TestFail@   s   
u   TestFail(   u   unittestu   TestCaseu   jsonu   JSONDOCSu   SKIPSu   TestFail(    (    (    u1   /mit/python/lib/python3.0/json/tests/test_fail.pyu   <module>   s<   	
