def test_prune_tuple(): l = (Dict(), Dict(), Dict()) l[0].a.b = 2 l1 = Dict._prune_iter(l) assert l1 == [{'a': {'b': 2}}]
def test_prune_list(): l = [Dict(), Dict(), Dict()] l[0].a.b = 2 l1 = Dict._prune_iter(l) assert l1 == [{'a': {'b': 2}}]
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}}])
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}}])