def dict_contains(superset, subset):
 for (key, value) in subset.iteritems():
  ok_((key in superset))
  eq_(superset[key], value)

def dict_contains ( superset , subset ) : for ( key , value ) in subset . iteritems ( ) : ok_ ( ( key in superset ) ) eq_ ( superset [ key ] , value )
assert that all key/val pairs in dict subset also exist in superset .