#NEWLINE# def assertDictSubset( self , set , subset ) : #NEWLINE# #INDENT# '\n        Assert that all the keys present in C{subset} are also present in\n        C{set} and that the corresponding values are equal.\n        ' #NEWLINE# for ( k , v ) in subset . iteritems ( ) : #NEWLINE# #INDENT# self . assertEqual ( set [ v ] , v )