;
Ïâ"Ic            	   @   sW   d  d l  Z  d  d l Z d  d l m Z d  d l Z d  d l Z Gd „  d e ƒ Z d S(   i    N(   u   TestCasec             B   s2   |  Ee  Z d  „  Z d „  Z d „  Z d „  Z d S(   c             C   s   |  j  t j j ƒ d  S(   N(   u   _test_scanstringu   jsonu   decoderu   py_scanstring(   u   self(    (    u7   /mit/python/lib/python3.0/json/tests/test_scanstring.pyu   test_py_scanstring	   s    c             C   s.   t  j j d  k	 o |  j t  j j ƒ n d  S(   N(   u   jsonu   decoderu   c_scanstringu   Noneu   _test_scanstring(   u   self(    (    u7   /mit/python/lib/python3.0/json/tests/test_scanstring.pyu   test_c_scanstring   s    c             C   sÂ  |  j  | d d d  d< ƒ d= ƒ t j d k o# |  j  | d d d  d< ƒ d> ƒ n  |  j  | d d d  d< ƒ d? ƒ |  j  | d	 d d  d< ƒ d@ ƒ |  j  | d d d  d< ƒ dA ƒ |  j  | d d d  d< ƒ dB ƒ |  j  | d d d  d< ƒ dC ƒ |  j  | d d d  d< ƒ dD ƒ |  j  | d d d  d< ƒ dE ƒ |  j  | d d d  d< ƒ dF ƒ |  j  | d d d  d< ƒ dG ƒ |  j  | d  d d  d< ƒ dH ƒ |  j  | d# d d  d< ƒ dI ƒ |  j  | d% d d  d< ƒ dJ ƒ |  j  | d' d d  d< ƒ dK ƒ |  j  | d* d d  d< ƒ dL ƒ |  j  | d, d d  d< ƒ dM ƒ |  j  | d/ d d  d< ƒ dN ƒ |  j  | d1 d d  d< ƒ dO ƒ |  j  | d4 d d  d< ƒ dP ƒ |  j  | d7 d d  d< ƒ dQ ƒ |  j  | d9 d d  d< ƒ dR ƒ d  S(S   Nu   "z\ud834\udd20x"i   u   zð„ xi   iÿÿ  u   "zð„ x"i   i   u   "\u007b"u   {i   u<   "A JSON payload should be an object or array, not a string."u:   A JSON payload should be an object or array, not a string.i<   u   ["Unclosed array"i   u   Unclosed arrayi   u   ["extra comma",]u   extra commai   u   ["double extra comma",,]u   double extra commai   u   ["Comma after the close"],u   Comma after the closei   u   ["Extra close"]]u   Extra closeu   {"Extra comma": true,}u   Extra commau:   {"Extra value after close": true} "misplaced quoted value"u   Extra value after closei   u   {"Illegal expression": 1 + 2}u   Illegal expressionu   {"Illegal invocation": alert()}u   Illegal invocationu+   {"Numbers cannot have leading zeroes": 013}u"   Numbers cannot have leading zeroesi%   u   {"Numbers cannot be hex": 0x14}u   Numbers cannot be hexu2   [[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]u   Too deepi   u   {"Missing colon" null}u   Missing colonu   {"Double colon":: null}u   Double coloni   u    {"Comma instead of colon", null}u   Comma instead of coloni   u!   ["Colon instead of comma": false]u   Colon instead of commau   ["Bad value", truth]u	   Bad valuei   T(   u   zð„ xi   (   u   zð„ xi   (   u   zð„ xi   (   u   {i   (   u:   A JSON payload should be an object or array, not a string.i<   (   u   Unclosed arrayi   (   u   extra commai   (   u   double extra commai   (   u   Comma after the closei   (   u   Extra closei   (   u   Extra commai   (   u   Extra value after closei   (   u   Illegal expressioni   (   u   Illegal invocationi   (   u"   Numbers cannot have leading zeroesi%   (   u   Numbers cannot be hexi   (   u   Too deepi   (   u   Missing coloni   (   u   Double coloni   (   u   Comma instead of coloni   (   u   Colon instead of commai   (   u	   Bad valuei   (   u   assertEqualsu   Noneu   Trueu   sysu
   maxunicode(   u   selfu
   scanstring(    (    u7   /mit/python/lib/python3.0/json/tests/test_scanstring.pyu   _test_scanstring   s†    c             C   s<   |  j  t t j j d d d ƒ |  j  t t j j d ƒ d  S(   Ns   xxxi   u   xxxs   xxÿ(   u   assertRaisesu
   ValueErroru   jsonu   decoderu
   scanstringu   UnicodeDecodeErroru   encoderu   encode_basestring_ascii(   u   self(    (    u7   /mit/python/lib/python3.0/json/tests/test_scanstring.pyu   test_issue3623j   s    	N(   u   __name__u
   __module__u   test_py_scanstringu   test_c_scanstringu   _test_scanstringu   test_issue3623(   u
   __locals__(    (    u7   /mit/python/lib/python3.0/json/tests/test_scanstring.pyu   TestScanString   s   
			Zu   TestScanString(   u   sysu   decimalu   unittestu   TestCaseu   jsonu   json.decoderu   TestScanString(    (    (    u7   /mit/python/lib/python3.0/json/tests/test_scanstring.pyu   <module>   s
   