<s> """<STR_LIT>""" <EOL> import weakref , os <EOL> try : <EOL> from ihooks import ModuleImporter <EOL> except ImportError : <EOL> ModuleImporter = None <EOL> try : <EOL> from collections import deque <EOL> except ImportError : <EOL> deque = None <EOL> from twisted . trial import unittest <EOL> from twisted . python import reflect , util <EOL> from twisted . python . versions import Version <EOL> class SettableTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . setter = reflect . Settable ( ) <EOL> def tearDown ( self ) : <EOL> del self . setter <EOL> def testSet ( self ) : <EOL> self . setter ( a = <NUM_LIT:1> , b = <NUM_LIT:2> ) <EOL> self . assertEqual ( self . setter . a , <NUM_LIT:1> ) <EOL> self . assertEqual ( self . setter . b , <NUM_LIT:2> ) <EOL> class AccessorTester ( reflect . Accessor ) : <EOL> def set_x ( self , x ) : <EOL> self . y = x <EOL> self . reallySet ( '<STR_LIT:x>' , x ) <EOL> def get_z ( self ) : <EOL> self . q = <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def del_z ( self ) : <EOL> self . reallyDel ( "<STR_LIT:q>" ) <EOL> class PropertyAccessorTester ( reflect . PropertyAccessor ) : <EOL> """<STR_LIT>""" <EOL> r = <NUM_LIT:0> <EOL> def set_r ( self , r ) : <EOL> self . s = r <EOL> def set_x ( self , x ) : <EOL> self . y = x <EOL> self . reallySet ( '<STR_LIT:x>' , x ) <EOL> def get_z ( self ) : <EOL> self . q = <NUM_LIT:1> <EOL> return <NUM_LIT:1> <EOL> def del_z ( self ) : <EOL> self . reallyDel ( "<STR_LIT:q>" ) <EOL> class AccessorTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . tester = AccessorTester ( ) <EOL> def testSet ( self ) : <EOL> self . tester . x = <NUM_LIT:1> <EOL> self . assertEqual ( self . tester . x , <NUM_LIT:1> ) <EOL> self . assertEqual ( self . tester . y , <NUM_LIT:1> ) <EOL> def testGet ( self ) : <EOL> self . assertEqual ( self . tester . z , <NUM_LIT:1> ) <EOL> self . assertEqual ( self . tester . q , <NUM_LIT:1> ) <EOL> def testDel ( self ) : <EOL> self . tester . z <EOL> self . assertEqual ( self . tester . q , <NUM_LIT:1> ) <EOL> del self . tester . z <EOL> self . assertEqual ( hasattr ( self . tester , "<STR_LIT:q>" ) , <NUM_LIT:0> ) <EOL> self . tester . x = <NUM_LIT:1> <EOL> del self . tester . x <EOL> self . assertEqual ( hasattr ( self . tester , "<STR_LIT:x>" ) , <NUM_LIT:0> ) <EOL> class PropertyAccessorTest ( AccessorTest ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . tester = PropertyAccessorTester ( ) <EOL> def test_setWithDefaultValue ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( self . tester . r , <NUM_LIT:0> ) <EOL> self . tester . r = <NUM_LIT:1> <EOL> self . assertEqual ( self . tester . r , <NUM_LIT:0> ) <EOL> self . assertEqual ( self . tester . s , <NUM_LIT:1> ) <EOL> def test_getValueInDict ( self ) : <EOL> """<STR_LIT>""" <EOL> self . tester . __dict__ [ "<STR_LIT:r>" ] = <NUM_LIT:10> <EOL> self . assertEqual ( self . tester . r , <NUM_LIT:10> ) <EOL> def test_notYetInDict ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( AttributeError , getattr , self . tester , "<STR_LIT:x>" ) <EOL> class LookupsTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_namedClassLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIdentical ( <EOL> reflect . namedClass ( "<STR_LIT>" ) , <EOL> reflect . Summer ) <EOL> def test_namedModuleLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIdentical ( <EOL> reflect . namedModule ( "<STR_LIT>" ) , reflect ) <EOL> def test_namedAnyPackageLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> import twisted . python <EOL> self . assertIdentical ( <EOL> reflect . namedAny ( "<STR_LIT>" ) , twisted . python ) <EOL> def test_namedAnyModuleLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIdentical ( <EOL> reflect . namedAny ( "<STR_LIT>" ) , reflect ) <EOL> def test_namedAnyClassLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIdentical ( <EOL> reflect . namedAny ( "<STR_LIT>" ) , reflect . Summer ) <EOL> def test_namedAnyAttributeLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( <EOL> reflect . namedAny ( "<STR_LIT>" ) , <EOL> reflect . Summer . reallySet ) <EOL> def test_namedAnySecondAttributeLookup ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertIdentical ( <EOL> reflect . namedAny ( <EOL> "<STR_LIT>" ) , <EOL> reflect . Summer . reallySet . __doc__ ) <EOL> def test_importExceptions ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( <EOL> ZeroDivisionError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> self . assertRaises ( <EOL> ZeroDivisionError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> self . assertRaises ( <EOL> ValueError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> self . assertRaises ( <EOL> ImportError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> def test_attributeExceptions ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertRaises ( <EOL> AttributeError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> self . assertRaises ( <EOL> AttributeError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> self . assertRaises ( <EOL> AttributeError , <EOL> reflect . namedAny , "<STR_LIT>" ) <EOL> def test_invalidNames ( self ) : <EOL> """<STR_LIT>""" <EOL> err = self . assertRaises ( reflect . ModuleNotFound , reflect . namedAny , <EOL> '<STR_LIT>' ) <EOL> self . assertEqual ( str ( err ) , "<STR_LIT>" ) <EOL> err = self . assertRaises ( reflect . ObjectNotFound , reflect . namedAny , <EOL> "<STR_LIT>" ) <EOL> self . assertEqual ( str ( err ) , "<STR_LIT>" ) <EOL> err = self . assertRaises ( reflect . ObjectNotFound , reflect . namedAny , <EOL> "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> str ( err ) , <EOL> "<STR_LIT>" ) <EOL> err = self . assertRaises ( reflect . InvalidName , reflect . namedAny , '<STR_LIT>' ) <EOL> self . assertEqual ( str ( err ) , '<STR_LIT>' ) <EOL> for invalidName in [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] : <EOL> err = self . assertRaises ( <EOL> reflect . InvalidName , reflect . namedAny , invalidName ) <EOL> self . assertEqual ( <EOL> str ( err ) , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" % ( invalidName , ) ) <EOL> class ImportHooksLookupTests ( LookupsTestCase ) : <EOL> """<STR_LIT>""" <EOL> if ModuleImporter == None : <EOL> skip = "<STR_LIT>" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> self . importer = ModuleImporter ( ) <EOL> self . importer . install ( ) <EOL> def tearDown ( self ) : <EOL> """<STR_LIT>""" <EOL> self . importer . uninstall ( ) <EOL> class ObjectGrep ( unittest . TestCase ) : <EOL> def test_dictionary ( self ) : <EOL> """<STR_LIT>""" <EOL> o = object ( ) <EOL> d1 = { None : o } <EOL> d2 = { o : None } <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( d1 , o , reflect . isSame ) ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( d2 , o , reflect . isSame ) ) <EOL> def test_list ( self ) : <EOL> """<STR_LIT>""" <EOL> o = object ( ) <EOL> L = [ None , o ] <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( L , o , reflect . isSame ) ) <EOL> def test_tuple ( self ) : <EOL> """<STR_LIT>""" <EOL> o = object ( ) <EOL> T = ( o , None ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( T , o , reflect . isSame ) ) <EOL> def test_instance ( self ) : <EOL> """<STR_LIT>""" <EOL> class Dummy : <EOL> pass <EOL> o = object ( ) <EOL> d = Dummy ( ) <EOL> d . o = o <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( d , o , reflect . isSame ) ) <EOL> def test_weakref ( self ) : <EOL> """<STR_LIT>""" <EOL> class Dummy : <EOL> pass <EOL> o = Dummy ( ) <EOL> w1 = weakref . ref ( o ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( w1 , o , reflect . isSame ) ) <EOL> def test_boundMethod ( self ) : <EOL> """<STR_LIT>""" <EOL> class Dummy : <EOL> def dummy ( self ) : <EOL> pass <EOL> o = Dummy ( ) <EOL> m = o . dummy <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( m , m . im_self , reflect . isSame ) ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( m , m . im_class , reflect . isSame ) ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( m , m . im_func , reflect . isSame ) ) <EOL> def test_everything ( self ) : <EOL> """<STR_LIT>""" <EOL> class Dummy : <EOL> def method ( self ) : <EOL> pass <EOL> o = Dummy ( ) <EOL> D1 = { ( ) : "<STR_LIT>" , None : "<STR_LIT>" , o : "<STR_LIT>" } <EOL> L = [ None , ( ) , D1 , <NUM_LIT:3> ] <EOL> T = ( L , { } , Dummy ( ) ) <EOL> D2 = { <NUM_LIT:0> : "<STR_LIT:foo>" , <NUM_LIT:1> : "<STR_LIT:bar>" , <NUM_LIT:2> : T } <EOL> i = Dummy ( ) <EOL> i . attr = D2 <EOL> m = i . method <EOL> w = weakref . ref ( m ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( w , o , reflect . isSame ) ) <EOL> def test_depthLimit ( self ) : <EOL> """<STR_LIT>""" <EOL> a = [ ] <EOL> b = [ a ] <EOL> c = [ a , b ] <EOL> d = [ a , c ] <EOL> self . assertEqual ( [ '<STR_LIT>' ] , reflect . objgrep ( d , a , reflect . isSame , maxDepth = <NUM_LIT:1> ) ) <EOL> self . assertEqual ( [ '<STR_LIT>' , '<STR_LIT>' ] , reflect . objgrep ( d , a , reflect . isSame , maxDepth = <NUM_LIT:2> ) ) <EOL> self . assertEqual ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , reflect . objgrep ( d , a , reflect . isSame , maxDepth = <NUM_LIT:3> ) ) <EOL> def test_deque ( self ) : <EOL> """<STR_LIT>""" <EOL> o = object ( ) <EOL> D = deque ( ) <EOL> D . append ( None ) <EOL> D . append ( o ) <EOL> self . assertIn ( "<STR_LIT>" , reflect . objgrep ( D , o , reflect . isSame ) ) <EOL> if deque is None : <EOL> test_deque . skip = "<STR_LIT>" <EOL> class GetClass ( unittest . TestCase ) : <EOL> def testOld ( self ) : <EOL> class OldClass : <EOL> pass <EOL> old = OldClass ( ) <EOL> self . assertIn ( reflect . getClass ( OldClass ) . __name__ , ( '<STR_LIT:class>' , '<STR_LIT>' ) ) <EOL> self . assertEqual ( reflect . getClass ( old ) . __name__ , '<STR_LIT>' ) <EOL> def testNew ( self ) : <EOL> class NewClass ( object ) : <EOL> pass <EOL> new = NewClass ( ) <EOL> self . assertEqual ( reflect . getClass ( NewClass ) . __name__ , '<STR_LIT:type>' ) <EOL> self . assertEqual ( reflect . getClass ( new ) . __name__ , '<STR_LIT>' ) <EOL> class Breakable ( object ) : <EOL> breakRepr = False <EOL> breakStr = False <EOL> def __str__ ( self ) : <EOL> if self . breakStr : <EOL> raise RuntimeError ( "<STR_LIT>" ) <EOL> else : <EOL> return '<STR_LIT>' <EOL> def __repr__ ( self ) : <EOL> if self . breakRepr : <EOL> raise RuntimeError ( "<STR_LIT>" ) <EOL> else : <EOL> return '<STR_LIT>' <EOL> class BrokenType ( Breakable , type ) : <EOL> breakName = False <EOL> def get___name__ ( self ) : <EOL> if self . breakName : <EOL> raise RuntimeError ( "<STR_LIT>" ) <EOL> return '<STR_LIT>' <EOL> __name__ = property ( get___name__ ) <EOL> class BTBase ( Breakable ) : <EOL> __metaclass__ = BrokenType <EOL> breakRepr = True <EOL> breakStr = True <EOL> class NoClassAttr ( Breakable ) : <EOL> __class__ = property ( lambda x : x . not_class ) <EOL> class SafeRepr ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_workingRepr ( self ) : <EOL> """<STR_LIT>""" <EOL> x = [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] <EOL> self . assertEqual ( reflect . safe_repr ( x ) , repr ( x ) ) <EOL> def test_brokenRepr ( self ) : <EOL> """<STR_LIT>""" <EOL> b = Breakable ( ) <EOL> b . breakRepr = True <EOL> bRepr = reflect . safe_repr ( b ) <EOL> self . assertIn ( "<STR_LIT>" , bRepr ) <EOL> self . assertIn ( os . path . splitext ( __file__ ) [ <NUM_LIT:0> ] , bRepr ) <EOL> self . assertIn ( "<STR_LIT>" , bRepr ) <EOL> def test_brokenStr ( self ) : <EOL> """<STR_LIT>""" <EOL> b = Breakable ( ) <EOL> b . breakStr = True <EOL> self . assertEqual ( reflect . safe_repr ( b ) , repr ( b ) ) <EOL> def test_brokenClassRepr ( self ) : <EOL> class X ( BTBase ) : <EOL> breakRepr = True <EOL> reflect . safe_repr ( X ) <EOL> reflect . safe_repr ( X ( ) ) <EOL> def test_unsignedID ( self ) : <EOL> """<STR_LIT>""" <EOL> class X ( BTBase ) : <EOL> breakRepr = True <EOL> ids = { X : <NUM_LIT:100> } <EOL> def fakeID ( obj ) : <EOL> try : <EOL> return ids [ obj ] <EOL> except ( TypeError , KeyError ) : <EOL> return id ( obj ) <EOL> self . addCleanup ( util . setIDFunction , util . setIDFunction ( fakeID ) ) <EOL> xRepr = reflect . safe_repr ( X ) <EOL> self . assertIn ( "<STR_LIT>" , xRepr ) <EOL> def test_brokenClassStr ( self ) : <EOL> class X ( BTBase ) : <EOL> breakStr = True <EOL> reflect . safe_repr ( X ) <EOL> reflect . safe_repr ( X ( ) ) <EOL> def test_brokenClassAttribute ( self ) : <EOL> """<STR_LIT>""" <EOL> b = NoClassAttr ( ) <EOL> b . breakRepr = True <EOL> bRepr = reflect . safe_repr ( b ) <EOL> self . assertIn ( "<STR_LIT>" , bRepr ) <EOL> self . assertIn ( os . path . splitext ( __file__ ) [ <NUM_LIT:0> ] , bRepr ) <EOL> self . assertIn ( "<STR_LIT>" , bRepr ) <EOL> def test_brokenClassNameAttribute ( self ) : <EOL> """<STR_LIT>""" <EOL> class X ( BTBase ) : <EOL> breakName = True <EOL> xRepr = reflect . safe_repr ( X ( ) ) <EOL> self . assertIn ( "<STR_LIT>" , xRepr ) <EOL> self . assertIn ( os . path . splitext ( __file__ ) [ <NUM_LIT:0> ] , xRepr ) <EOL> self . assertIn ( "<STR_LIT>" , xRepr ) <EOL> class SafeStr ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_workingStr ( self ) : <EOL> x = [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> ] <EOL> self . assertEqual ( reflect . safe_str ( x ) , str ( x ) ) <EOL> def test_brokenStr ( self ) : <EOL> b = Breakable ( ) <EOL> b . breakStr = True <EOL> reflect . safe_str ( b ) <EOL> def test_brokenRepr ( self ) : <EOL> b = Breakable ( ) <EOL> b . breakRepr = True <EOL> reflect . safe_str ( b ) <EOL> def test_brokenClassStr ( self ) : <EOL> class X ( BTBase ) : <EOL> breakStr = True <EOL> reflect . safe_str ( X ) <EOL> reflect . safe_str ( X ( ) ) <EOL> def test_brokenClassRepr ( self ) : <EOL> class X ( BTBase ) : <EOL> breakRepr = True <EOL> reflect . safe_str ( X ) <EOL> reflect . safe_str ( X ( ) ) <EOL> def test_brokenClassAttribute ( self ) : <EOL> """<STR_LIT>""" <EOL> b = NoClassAttr ( ) <EOL> b . breakStr = True <EOL> bStr = reflect . safe_str ( b ) <EOL> self . assertIn ( "<STR_LIT>" , bStr ) <EOL> self . assertIn ( os . path . splitext ( __file__ ) [ <NUM_LIT:0> ] , bStr ) <EOL> self . assertIn ( "<STR_LIT>" , bStr ) <EOL> def test_brokenClassNameAttribute ( self ) : <EOL> """<STR_LIT>""" <EOL> class X ( BTBase ) : <EOL> breakName = True <EOL> xStr = reflect . safe_str ( X ( ) ) <EOL> self . assertIn ( "<STR_LIT>" , xStr ) <EOL> self . assertIn ( os . path . splitext ( __file__ ) [ <NUM_LIT:0> ] , xStr ) <EOL> self . assertIn ( "<STR_LIT>" , xStr ) <EOL> class FilenameToModule ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_directory ( self ) : <EOL> """<STR_LIT>""" <EOL> module = reflect . filenameToModuleName ( os . path . join ( '<STR_LIT>' , '<STR_LIT:test>' ) ) <EOL> self . assertEqual ( module , '<STR_LIT:test>' ) <EOL> module = reflect . filenameToModuleName ( os . path . join ( '<STR_LIT>' , '<STR_LIT:test>' ) <EOL> + os . path . sep ) <EOL> self . assertEqual ( module , '<STR_LIT:test>' ) <EOL> def test_file ( self ) : <EOL> """<STR_LIT>""" <EOL> module = reflect . filenameToModuleName ( <EOL> os . path . join ( '<STR_LIT>' , '<STR_LIT:test>' , '<STR_LIT>' ) ) <EOL> self . assertEqual ( module , '<STR_LIT>' ) <EOL> class FullyQualifiedNameTests ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def _checkFullyQualifiedName ( self , obj , expected ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( <EOL> reflect . fullyQualifiedName ( obj ) , expected ) <EOL> def test_package ( self ) : <EOL> """<STR_LIT>""" <EOL> import twisted <EOL> self . _checkFullyQualifiedName ( twisted , '<STR_LIT>' ) <EOL> import twisted . python <EOL> self . _checkFullyQualifiedName ( twisted . python , '<STR_LIT>' ) <EOL> def test_module ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _checkFullyQualifiedName ( reflect , '<STR_LIT>' ) <EOL> import twisted . trial . unittest <EOL> self . _checkFullyQualifiedName ( twisted . trial . unittest , <EOL> '<STR_LIT>' ) <EOL> def test_class ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _checkFullyQualifiedName ( reflect . Settable , <EOL> '<STR_LIT>' ) <EOL> def test_function ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _checkFullyQualifiedName ( reflect . fullyQualifiedName , <EOL> "<STR_LIT>" ) <EOL> def test_boundMethod ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _checkFullyQualifiedName ( <EOL> reflect . PropertyAccessor ( ) . reallyDel , <EOL> "<STR_LIT>" ) <EOL> def test_unboundMethod ( self ) : <EOL> """<STR_LIT>""" <EOL> self . _checkFullyQualifiedName ( <EOL> reflect . PropertyAccessor . reallyDel , <EOL> "<STR_LIT>" ) <EOL> class DeprecationTestCase ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_allYourBase ( self ) : <EOL> """<STR_LIT>""" <EOL> self . callDeprecated ( <EOL> ( Version ( "<STR_LIT>" , <NUM_LIT:11> , <NUM_LIT:0> , <NUM_LIT:0> ) , "<STR_LIT>" ) , <EOL> reflect . allYourBase , DeprecationTestCase ) <EOL> def test_accumulateBases ( self ) : <EOL> """<STR_LIT>""" <EOL> l = [ ] <EOL> self . callDeprecated ( <EOL> ( Version ( "<STR_LIT>" , <NUM_LIT:11> , <NUM_LIT:0> , <NUM_LIT:0> ) , "<STR_LIT>" ) , <EOL> reflect . accumulateBases , DeprecationTestCase , l , None ) <EOL> def lookForDeprecationWarning ( self , testMethod , attributeName , warningMsg ) : <EOL> """<STR_LIT>""" <EOL> warningsShown = self . flushWarnings ( [ testMethod ] ) <EOL> self . assertEqual ( len ( warningsShown ) , <NUM_LIT:1> ) <EOL> self . assertIdentical ( warningsShown [ <NUM_LIT:0> ] [ '<STR_LIT>' ] , DeprecationWarning ) <EOL> self . assertEqual ( <EOL> warningsShown [ <NUM_LIT:0> ] [ '<STR_LIT:message>' ] , <EOL> "<STR_LIT>" + attributeName + "<STR_LIT:U+0020>" <EOL> "<STR_LIT>" + warningMsg + "<STR_LIT:.>" ) <EOL> def test_settable ( self ) : <EOL> """<STR_LIT>""" <EOL> reflect . Settable ( ) <EOL> self . lookForDeprecationWarning ( <EOL> self . test_settable , "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def test_accessorType ( self ) : <EOL> """<STR_LIT>""" <EOL> reflect . AccessorType ( '<STR_LIT:U+0020>' , ( ) , { } ) <EOL> self . lookForDeprecationWarning ( <EOL> self . test_accessorType , "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def test_propertyAccessor ( self ) : <EOL> """<STR_LIT>""" <EOL> reflect . PropertyAccessor ( ) <EOL> self . lookForDeprecationWarning ( <EOL> self . test_propertyAccessor , "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def test_accessor ( self ) : <EOL> """<STR_LIT>""" <EOL> reflect . Accessor ( ) <EOL> self . lookForDeprecationWarning ( <EOL> self . test_accessor , "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def test_originalAccessor ( self ) : <EOL> """<STR_LIT>""" <EOL> reflect . OriginalAccessor ( ) <EOL> self . lookForDeprecationWarning ( <EOL> self . test_originalAccessor , "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> def test_summer ( self ) : <EOL> """<STR_LIT>""" <EOL> reflect . Summer ( ) <EOL> self . lookForDeprecationWarning ( <EOL> self . test_summer , "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) </s>
