示例#1
0
 def test_pop_raises(self):
     from AccessControl.ZopeGuards import get_dict_pop
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertRaises(KeyError, pop, 'baz')
示例#2
0
 def test_pop_default(self):
     from AccessControl.ZopeGuards import get_dict_pop
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('baz', 'splat'), 'splat')
示例#3
0
 def test_pop_default(self):
     from AccessControl.ZopeGuards import get_dict_pop
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('baz', 'splat'), 'splat')
示例#4
0
 def test_pop_simple(self):
     from AccessControl.ZopeGuards import get_dict_pop
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('foo'), 'bar')
示例#5
0
 def test_pop_simple(self):
     from AccessControl.ZopeGuards import get_dict_pop
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('foo'), 'bar')
示例#6
0
 def test_pop_raises(self):
     from AccessControl.ZopeGuards import get_dict_pop
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertRaises(KeyError, pop, 'baz')
示例#7
0
 def test_pop_raises(self):
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertRaises(KeyError, pop, 'baz')
示例#8
0
 def test_pop_default(self):
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('baz', 'splat'), 'splat')
示例#9
0
    def test_pop_default(self):
        from AccessControl.ZopeGuards import get_dict_pop

        pop = get_dict_pop({"foo": "bar"}, "pop")
        self.assertEqual(pop("baz", "splat"), "splat")
示例#10
0
 def test_pop_simple(self):
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('foo'), 'bar')
示例#11
0
    def test_pop_raises(self):
        from AccessControl.ZopeGuards import get_dict_pop

        pop = get_dict_pop({"foo": "bar"}, "pop")
        self.assertRaises(KeyError, pop, "baz")
示例#12
0
    def test_pop_simple(self):
        from AccessControl.ZopeGuards import get_dict_pop

        pop = get_dict_pop({"foo": "bar"}, "pop")
        self.assertEqual(pop("foo"), "bar")
示例#13
0
 def test_pop_default(self):
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('baz', 'splat'), 'splat')
示例#14
0
 def test_pop_raises(self):
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertRaises(KeyError, pop, 'baz')
示例#15
0
 def test_pop_simple(self):
     pop = get_dict_pop({'foo': 'bar'}, 'pop')
     self.assertEqual(pop('foo'), 'bar')