#NEWLINE# def test_patch_multiple_string_subclasses( self ) : #NEWLINE# #INDENT# for base in ( str , unicode ) : #NEWLINE# #INDENT# Foo = type ( 'Foo' , ( base , ) , { #NEWLINE# #INDENT# 'fish' : 'tasty' , #NEWLINE# #UNINDENT# } ) #NEWLINE# foo = Foo ( ) #NEWLINE# @ patch . multiple ( foo , fish = 'nearly gone' ) #NEWLINE# def test( ) : #NEWLINE# #INDENT# self . assertEqual ( foo . fish , 'nearly gone' ) #NEWLINE# #UNINDENT# test ( ) #NEWLINE# self . assertEqual ( foo . fish , 'tasty' )