;
Λβ"Ic               @   s/   d  d l  Z  d  d l Z Gd   d e  Z d S(   i    Nc             B   sΏ   |  Ee  Z d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d S(   uI   Tests that work for both bytes and buffer objects.
    See PEP 3137.
    c             C   s   t  d   d S(   u4   Convert x into the appropriate type for these tests.u(   test class must provide a marshal methodN(   u   RuntimeError(   u   selfu   x(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   marshal   s    c             C   sη   |  j  |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j t |  j d  j d  d  S(	   Ns    s   as   As   
s   abcs   aBcs   abc
i*   (   u   assertFalseu   marshalu   isloweru   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_islower   s    c             C   sη   |  j  |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j t |  j d  j d	  d  S(
   Ns    s   as   As   
s   ABCs   AbCs   ABC
s   abci*   (   u   assertFalseu   marshalu   isupperu   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_isupper   s    c             C   sW  |  j  |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j  |  j d	  j    |  j  |  j d
  j    |  j  |  j d  j    |  j t |  j d  j d  d  S(   Ns    s   as   As   
s   A Titlecased Lines   A
Titlecased Lines   A Titlecased, Lines   Not a capitalized Strings   Not	a Titlecase Strings   Not--a Titlecase Strings   NOTs   abci*   (   u   assertFalseu   marshalu   istitleu   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_istitle$   s    c             C   s  |  j  |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j t |  j d	  j d
  d  S(   Ns    s   as    s   	s   s   
s    	
s    	
as   abci*   (   u   assertFalseu   marshalu   isspaceu   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_isspace2   s    c             C   sη   |  j  |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j  |  j d  j    |  j t |  j d  j d  d  S(	   Ns    s   as   As   
s   abcs   aBc123s   abc
i*   (   u   assertFalseu   marshalu   isalphau   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_isalpha=   s    c             C   s  |  j  |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j  |  j d  j    |  j t |  j d	  j d
  d  S(   Ns    s   as   As   
s	   123abc456s   a1b3cs   aBc000 s   abc
s   abci*   (   u   assertFalseu   marshalu   isalnumu   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_isalnumG   s    c             C   s―   |  j  |  j d  j    |  j  |  j d  j    |  j |  j d  j    |  j |  j d  j    |  j  |  j d  j    |  j t |  j d  j d  d  S(   Ns    s   as   0s
   0123456789s   0123456789as   abci*   (   u   assertFalseu   marshalu   isdigitu   assert_u   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_isdigitR   s    c             C   sa   |  j  d |  j d  j    |  j  d |  j d  j    |  j t |  j d  j d  d  S(   Ns   hellos   HeLLoi*   (   u   assertEqualu   marshalu   loweru   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu
   test_lower[   s    c             C   sa   |  j  d |  j d  j    |  j  d |  j d  j    |  j t |  j d  j d  d  S(   Ns   HELLOs   HeLLos   helloi*   (   u   assertEqualu   marshalu   upperu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu
   test_upper`   s    c             C   sΎ   |  j  d |  j d  j    |  j  d |  j d  j    |  j  d |  j d  j    |  j  d |  j d  j    |  j  d |  j d  j    |  j t |  j d  j d  d  S(	   Ns    hello s   Hello s   hello s   Aaaas   aaaas   AaAas   helloi*   (   u   assertEqualu   marshalu
   capitalizeu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_capitalizee   s    c             C   sΝ   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d d	   |  j t |  j d  j  d  S(
   Ns
   abc       s   abci
   s   abc   i   i   i   s
   abc*******u   *(   u   assertEqualu   marshalu   ljustu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu
   test_ljustn   s    """"%c             C   sΝ   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d d	   |  j t |  j d  j  d  S(
   Ns
          abcs   abci
   s      abci   i   i   s
   *******abcu   *(   u   assertEqualu   marshalu   rjustu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu
   test_rjustv   s    """"%c             C   sΝ   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d d	   |  j t |  j d  j  d  S(
   Ns
      abc    s   abci
   s    abc  i   i   i   s
   ***abc****u   *(   u   assertEqualu   marshalu   centeru   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_center~   s    """"%c             C   sB   |  j  d |  j d  j    |  j t |  j d  j d  d  S(   Ns   hEllO CoMPuTErSs   HeLLo cOmpUteRss   helloi*   (   u   assertEqualu   marshalu   swapcaseu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_swapcase   s    	c             C   sΈ  |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d	 |  j d	  j d   |  j  d	 |  j d	  j d   |  j  d
 |  j d	  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j t |  j d  j  d  S(   Ns   123i   i   s   0123i   s   +123s   +0123i   s   -123s   -0123s   000s    s   34i   s   0034(   u   assertEqualu   marshalu   zfillu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu
   test_zfill   s    """"""""""""c             C   s|  |  j  d |  j d  j    |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d |  j d  j    |  j  d |  j d  j d   |  j  d |  j d  j d   |  j  d	 |  j d
  j d   |  j t |  j d  j d d  t j d k  o< t j d  d k o& |  j t	 |  j d  j t j  n d  S(   Ns   abcab      def
g       his   abcab	def
g	hii   s   abcab  def
g   hii   s   abc
ab  def
g   his   abc
ab	def
g	his   abc
ab
def
g
his     a
 bs    	a
	bi   s   helloi*   i    u   Ps   	a
	bl        (
   u   assertEqualu   marshalu
   expandtabsu   assertRaisesu	   TypeErroru   sysu   maxsizeu   structu   calcsizeu   OverflowError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_expandtabs   s&    							""&	c             C   sέ   |  j  d |  j d  j    |  j  d |  j d  j    |  j  d |  j d  j    |  j  d |  j d  j    |  j  d |  j d  j    |  j  d	 |  j d
  j    |  j t |  j d  j d  d  S(   Ns    Hello s    hello s   Hello s   hello s   Format This As Title Strings   fOrMaT thIs aS titLe Strings   Format,This-As*Title;Strings   fOrMaT,thIs-aS*titLe;Strings   Getints   getInts   helloi*   (   u   assertEqualu   marshalu   titleu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu
   test_title³   s    		c             C   sV  |  j  d d d d g |  j d  j    |  j  d d d d g |  j d  j    |  j  d d d g |  j d  j    |  j  d d d g |  j d  j    |  j  d d d d g |  j d	  j    |  j  d d d d d g |  j d
  j    |  j  d d d d d g |  j d
  j d   |  j t |  j d  j d d  d  S(   Ns   abcs   defs    s   ghis   abc
def
ghis   abc
def

ghis   abc
def
ghis   abc
def
ghi
s   abc
def
ghi
s   
abc
def
ghi
s   
s   abc
s   def
s   ghi
s   i   i*   (   u   assertEqualu   marshalu
   splitlinesu   assertRaisesu	   TypeError(   u   self(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   test_splitlinesΎ   s    N(   u   __name__u
   __module__u   __doc__u   marshalu   test_isloweru   test_isupperu   test_istitleu   test_isspaceu   test_isalphau   test_isalnumu   test_isdigitu
   test_loweru
   test_upperu   test_capitalizeu
   test_ljustu
   test_rjustu   test_centeru   test_swapcaseu
   test_zfillu   test_expandtabsu
   test_titleu   test_splitlines(   u
   __locals__(    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   MixinBytesBufferCommonTests   s(   
		
	
			
														u   MixinBytesBufferCommonTests(   u   structu   sysu   objectu   MixinBytesBufferCommonTests(    (    (    u.   /mit/python/lib/python3.0/test/buffer_tests.pyu   <module>   s   