예제 #1
0
def test_prune_tuple():
    l = (Dict(), Dict(), Dict())
    l[0].a.b = 2
    l1 = Dict._prune_iter(l)
    assert l1 == [{'a': {'b': 2}}]
예제 #2
0
def test_prune_list():
    l = [Dict(), Dict(), Dict()]
    l[0].a.b = 2
    l1 = Dict._prune_iter(l)
    assert l1 == [{'a': {'b': 2}}]
예제 #3
0
 def test_prune_tuple(self):
     l = (Dict(), Dict(), Dict())
     l[0].a.b = 2
     l1 = Dict._prune_iter(l)
     self.assertSequenceEqual(l1, [{'a': {'b': 2}}])
예제 #4
0
 def test_prune_list(self):
     l = [Dict(), Dict(), Dict()]
     l[0].a.b = 2
     l1 = Dict._prune_iter(l)
     self.assertSequenceEqual(l1, [{'a': {'b': 2}}])
예제 #5
0
 def test_prune_tuple(self):
     l = (Dict(), Dict(), Dict())
     l[0].a.b = 2
     l1 = Dict._prune_iter(l)
     self.assertSequenceEqual(l1, [{'a': {'b': 2}}])
예제 #6
0
 def test_prune_list(self):
     l = [Dict(), Dict(), Dict()]
     l[0].a.b = 2
     l1 = Dict._prune_iter(l)
     self.assertSequenceEqual(l1, [{'a': {'b': 2}}])