예제 #1
0
파일: test_utils.py 프로젝트: fqxp/dictlib
    def test_without_leaves_given_dict_untouched(self):
        d = {'foo': 'bar', 'baz': 'foo'}

        d2 = without(d, 'baz')

        self.assertEquals({'foo': 'bar', 'baz': 'foo'}, d)
예제 #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)
예제 #3
0
파일: test_utils.py 프로젝트: fqxp/dictlib
    def test_without_returns_dict_with_given_key(self):
        d = {'foo': 'bar', 'baz': 'foo'}

        d2 = without(d, 'baz')

        self.assertEquals({'foo': 'bar'}, d2)
예제 #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)