#NEWLINE# def test_method_prop( self ) : #NEWLINE# #INDENT# class Test ( object ) : #NEWLINE# #INDENT# foo = True #NEWLINE# def bar( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# bar . allow_tags = True #NEWLINE# def baz( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# baz . allow_tags = False #NEWLINE# def egg( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# test = Test ( ) #NEWLINE# self . assertIsNone ( _method_prop ( test , 'foo' , 'allow_tags' ) ) #NEWLINE# self . assertEqual ( _method_prop ( test , 'bar' , 'allow_tags' ) , True ) #NEWLINE# self . assertFalse ( _method_prop ( test , 'baz' , 'allow_tags' ) ) #NEWLINE# self . assertIsNone ( _method_prop ( test , 'egg' , 'allow_tags' ) ) #NEWLINE# self . assertIsNone ( _method_prop ( test , 'doesnt_exist' , 'allow_tags' ) )