Beispiel #1
0
    def test_without_leaves_given_dict_untouched(self):
        d = {'foo': 'bar', 'baz': 'foo'}

        d2 = without(d, 'baz')

        self.assertEquals({'foo': 'bar', 'baz': 'foo'}, d)
Beispiel #2
0
    def test_without_leaves_given_dict_untouched(self):
        d = {'foo': 'bar', 'baz': 'foo'}

        d2 = without(d, 'baz')

        self.assertEquals({'foo': 'bar', 'baz': 'foo'}, d)
Beispiel #3
0
    def test_without_returns_dict_with_given_key(self):
        d = {'foo': 'bar', 'baz': 'foo'}

        d2 = without(d, 'baz')

        self.assertEquals({'foo': 'bar'}, d2)
Beispiel #4
0
    def test_without_returns_dict_with_given_key(self):
        d = {'foo': 'bar', 'baz': 'foo'}

        d2 = without(d, 'baz')

        self.assertEquals({'foo': 'bar'}, d2)