def test_paths(self): tree = Tree() tree['b']['c']['e'] = 4 tree['b']['v']['d'] = 3 tree['a'] = 1 expected = {('b', 'c', 'e'): 4, ('b', 'v', 'd'): 3, ('a', ): 1} self.assertDictEqual(expected, tree.paths())
def test_paths(self): tree = Tree() tree['b']['c']['e'] = 4 tree['b']['v']['d'] = 3 tree['a'] = 1 expected = {('b', 'c', 'e'): 4, ('b', 'v', 'd'): 3, ('a', ): 1} assert expected == tree.paths()
def test_paths(self): tree = Tree() tree['b']['c']['e'] = 4 tree['b']['v']['d'] = 3 tree['a'] = 1 expected = {('b', 'c', 'e'): 4, ('b', 'v', 'd'): 3, ('a',): 1} self.assertDictEqual(expected, tree.paths())
def test_paths(self): tree = Tree() tree["b"]["c"]["e"] = 4 tree["b"]["v"]["d"] = 3 tree["a"] = 1 expected = {("b", "c", "e"): 4, ("b", "v", "d"): 3, ("a", ): 1} assert expected == tree.paths()