#NEWLINE# def test_resource_init_attrs( self ) : #NEWLINE# #INDENT# r = resources . Resource ( _name = self . test_name , _info = self . test_info_0 ) #NEWLINE# r . b = 'b' #NEWLINE# self . assertEqual ( 'a' , r . a ) #NEWLINE# self . assertEqual ( 'b' , r . __getattr__ ( 'b' ) ) #NEWLINE# self . assertIn ( 'b' , r . __dict__ ) #NEWLINE# self . assertEqual ( self . test_info_0 , r . _info ) #NEWLINE# self . assertEqual ( self . test_name , r . _name ) #NEWLINE# self . assertEqual ( self . test_name , r . __resource_name__ )