#NEWLINE# def test_patch_multiple_decorating_class( self ) : #NEWLINE# #INDENT# test = self #NEWLINE# original_foo = Foo #NEWLINE# original_f = Foo . f #NEWLINE# original_g = Foo . g #NEWLINE# class SomeTest ( object ) : #NEWLINE# #INDENT# def _test( self , f , foo ) : #NEWLINE# #INDENT# test . assertIs ( Foo , original_foo ) #NEWLINE# test . assertIs ( Foo . f , f ) #NEWLINE# test . assertEqual ( Foo . g , 3 ) #NEWLINE# test . assertIs ( Foo . foo , foo ) #NEWLINE# test . assertTrue ( is_instance ( f , MagicMock ) ) #NEWLINE# test . assertTrue ( is_instance ( foo , MagicMock ) ) #NEWLINE# #UNINDENT# def test_two( self , f , foo ) : #NEWLINE# #INDENT# self . _test ( f , foo ) #NEWLINE# #UNINDENT# def test_one( self , f , foo ) : #NEWLINE# #INDENT# self . _test ( f , foo ) #NEWLINE# #UNINDENT# #UNINDENT# SomeTest = patch . multiple ( foo_name , f = DEFAULT , g = 3 , foo = DEFAULT ) ( self ) #NEWLINE# thing = SomeTest ( ) #NEWLINE# thing . test_one ( ) #NEWLINE# thing . test_two ( ) #NEWLINE# self . assertEqual ( Foo . f , original_f ) #NEWLINE# self . assertEqual ( Foo . g , original_g )