def test_without_leaves_given_dict_untouched(self): d = {'foo': 'bar', 'baz': 'foo'} d2 = without(d, 'baz') self.assertEquals({'foo': 'bar', 'baz': 'foo'}, d)
def test_without_returns_dict_with_given_key(self): d = {'foo': 'bar', 'baz': 'foo'} d2 = without(d, 'baz') self.assertEquals({'foo': 'bar'}, d2)