Ñò
•à"Ic           @   s›   d  d k  l Z d  d k 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 h 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]u \ } } | d } | t j o t i | ƒ q n y t i | ƒ Wn t j
 o q X|  i d | | f ƒ q Wd  S(   Ni   s$   Expected failure for fail%d.json: %r(   t	   enumeratet   JSONDOCSt   SKIPSt   jsont   loadst
   ValueErrort   fail(   t   selft   idxt   doc(    (    s1   /mit/python/lib/python2.6/json/tests/test_fail.pyt   test_failuresA   s     
(   t   __name__t
   __module__R   (    (    (    s1   /mit/python/lib/python2.6/json/tests/test_fail.pyR   @   s   (   t   unittestR    R   R   R   R   (    (    (    s1   /mit/python/lib/python2.6/json/tests/test_fail.pyt   <module>   s<   	
