@@ -1819,7 +1819,7 @@ def test_can_model_package_source_uri_autopopulate():
18191819class TestDeepMergeDict (TestCase ):
18201820 def test_flatten_dict_basic (self ):
18211821 nested_dict = {"a" : 1 , "b" : {"x" : 2 , "y" : {"p" : 3 , "q" : 4 }}, "c" : 5 }
1822- flattened_dict = {"a" : 1 , "b. x" : 2 , "b.y. p" : 3 , "b.y. q" : 4 , "c" : 5 }
1822+ flattened_dict = {"a" : 1 , "b^ x" : 2 , "b^y^ p" : 3 , "b^y^ q" : 4 , "c" : 5 }
18231823 self .assertDictEqual (flatten_dict (nested_dict ), flattened_dict )
18241824 self .assertDictEqual (unflatten_dict (flattened_dict ), nested_dict )
18251825
@@ -1837,7 +1837,7 @@ def test_flatten_dict_no_nested(self):
18371837
18381838 def test_flatten_dict_with_various_types (self ):
18391839 nested_dict = {"a" : [1 , 2 , 3 ], "b" : {"x" : None , "y" : {"p" : [], "q" : "" }}, "c" : 9 }
1840- flattened_dict = {"a" : [1 , 2 , 3 ], "b. x" : None , "b.y. p" : [], "b.y. q" : "" , "c" : 9 }
1840+ flattened_dict = {"a" : [1 , 2 , 3 ], "b^ x" : None , "b^y^ p" : [], "b^y^ q" : "" , "c" : 9 }
18411841 self .assertDictEqual (flatten_dict (nested_dict ), flattened_dict )
18421842 self .assertDictEqual (unflatten_dict (flattened_dict ), nested_dict )
18431843
0 commit comments