def test_HashableDict_Equality(self): dict1 = {'key': 'value'} dict2 = {'key': 'another_value'} assert_that(utils.HashableDict(dict1) == utils.HashableDict(dict1)) assert_that(not utils.HashableDict(dict1) != utils.HashableDict(dict1)) assert_that(not utils.HashableDict(dict1) == dict1) assert_that(utils.HashableDict(dict1) != dict1) assert_that(not utils.HashableDict(dict1) == utils.HashableDict(dict2)) assert_that(utils.HashableDict(dict1) != utils.HashableDict(dict2))
def HashableDict_Equality_test(): dict1 = {'key': 'value'} dict2 = {'key': 'another_value'} ok_(utils.HashableDict(dict1) == utils.HashableDict(dict1)) ok_(not utils.HashableDict(dict1) != utils.HashableDict(dict1)) ok_(not utils.HashableDict(dict1) == dict1) ok_(utils.HashableDict(dict1) != dict1) ok_(not utils.HashableDict(dict1) == utils.HashableDict(dict2)) ok_(utils.HashableDict(dict1) != utils.HashableDict(dict2))