fix #942: type_match None

This commit is contained in:
debugtalk
2020-06-21 15:04:04 +08:00
parent 6710eba1fc
commit 2b75d78df0
5 changed files with 19 additions and 1 deletions

View File

@@ -69,6 +69,9 @@ class TestUtils(unittest.TestCase):
functions_mapping["type_match"]([1], "list")
functions_mapping["type_match"]({}, "dict")
functions_mapping["type_match"]({"a": 1}, "dict")
functions_mapping["type_match"](None, "None")
functions_mapping["type_match"](None, "NoneType")
functions_mapping["type_match"](None, None)
def test_lower_dict_keys(self):
request_dict = {