#NEWLINE# def test_python_methods( self ) : #NEWLINE# #INDENT# s = SomePyMethods ( ) #NEWLINE# self . assertEquals ( 6 , s [ 3 ] ) #NEWLINE# self . assertEquals ( 2 , s . a , 'Undefined attributes should go through to __getattr__' ) #NEWLINE# self . assertEquals ( 3 , s . b , 'Defined fields should take precedence' )