#NEWLINE# def test_suite_decorator_overrides_parent( self ) : #NEWLINE# #INDENT# 'Check that the @suite decorator overrides any @suite on the overridden (parent class) method.' #NEWLINE# class SuperTestCase ( TestCase ) : #NEWLINE# #INDENT# @ suite ( 'super' ) #NEWLINE# def test_thing( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# class SubTestCase ( SuperTestCase ) : #NEWLINE# #INDENT# __test__ = False #NEWLINE# @ suite ( 'sub' ) #NEWLINE# def test_thing( self ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# super_instance = SuperTestCase ( ) #NEWLINE# sub_instance = SubTestCase ( ) #NEWLINE# assert_equal ( super_instance . test_thing . _suites , set ( [ 'super' ] ) ) #NEWLINE# assert_equal ( super_instance . test_thing . _suites , set ( [ 'sub' ] ) )