fix #84: type_match invalid

This commit is contained in:
debugtalk
2018-01-17 12:49:02 +08:00
parent f1a5eb56c0
commit c40a208024
4 changed files with 36 additions and 1 deletions

View File

@@ -162,6 +162,9 @@ class TestUtils(ApiServerUnittest):
functions_mapping["endswith"]("123abc", "abc")
functions_mapping["endswith"](12345, 45)
functions_mapping["type_match"](580509390, int)
functions_mapping["type_match"](580509390, "int")
def test_deep_update_dict(self):
origin_dict = {'a': 1, 'b': {'c': 3, 'd': 4}, 'f': 6, 'h': 123}
override_dict = {'a': 2, 'b': {'c': 33, 'e': 5}, 'g': 7, 'h': None}