示例#1
0
 def test_dict_3(self):
     d = {'a': {'b': [1, 2, 'v']}, 'b': 'c', 'd': {'b': 4}}
     tree = Tree(d)
     self.assertEqual(d, tree.dict())
示例#2
0
 def test_dict_1(self):
     d = {'a': 1, 'b': 2}
     tree = Tree(d)
     self.assertEqual(d, tree.dict())
示例#3
0
 def test_dict_2(self):
     d = {'a': {'b': 'a'}, 'b': 'c', 'd': {'b': 'c'}}
     tree = Tree(d)
     self.assertEqual(d, tree.dict())
示例#4
0
 def test_dict_2(self):
     d = {'a': {'b': 'a'}, 'b': 'c', 'd': {'b': 'c'}}
     tree = Tree(d)
     assert d == tree.dict()
示例#5
0
 def test_dict_3(self):
     d = {'a': {'b': [1, 2, 'v']}, 'b': 'c', 'd': {'b': 4}}
     tree = Tree(d)
     assert d == tree.dict()
示例#6
0
 def test_dict_3(self):
     d = {"a": {"b": [1, 2, "v"]}, "b": "c", "d": {"b": 4}}
     tree = Tree(d)
     assert d == tree.dict()
示例#7
0
 def test_dict_1(self):
     d = {'a': 1, 'b': 2}
     tree = Tree(d)
     assert d == tree.dict()
示例#8
0
 def test_dict_2(self):
     d = {"a": {"b": "a"}, "b": "c", "d": {"b": "c"}}
     tree = Tree(d)
     assert d == tree.dict()
示例#9
0
 def test_dict_1(self):
     d = {"a": 1, "b": 2}
     tree = Tree(d)
     assert d == tree.dict()
示例#10
0
 def test_dict_3(self):
     d = {'a': {'b': [1, 2, 'v']}, 'b': 'c', 'd': {'b': 4}}
     tree = Tree(d)
     self.assertEqual(d, tree.dict())
示例#11
0
 def test_dict_2(self):
     d = {'a': {'b': 'a'}, 'b': 'c', 'd': {'b': 'c'}}
     tree = Tree(d)
     self.assertEqual(d, tree.dict())
示例#12
0
 def test_dict_1(self):
     d = {'a': 1, 'b': 2}
     tree = Tree(d)
     self.assertEqual(d, tree.dict())