#NEWLINE# def test_patch_multiple_new_callable( self ) : #NEWLINE# #INDENT# class Thing ( object ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# patcher = patch . multiple ( Foo , f = DEFAULT , g = DEFAULT , new_callable = Thing ) #NEWLINE# result = patcher . start ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . assertIs ( Foo . f , patcher [ 'f' ] ) #NEWLINE# self . assertIs ( Foo . g , result [ 'g' ] ) #NEWLINE# self . assertIsInstance ( Foo . f , Thing ) #NEWLINE# self . assertIsInstance ( Foo . g , Thing ) #NEWLINE# self . assertIsNot ( Foo . f , Foo . g ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# patcher . stop ( )