コード例 #1
0
 def testNoneValue(self):
     input = None
     expected = {}
     res = SaasHerder.remove_none_values(input)
     self.assertEqual(res, expected)
コード例 #2
0
 def testSimpleDict(self):
     input = {"a": 1, "b": {}, "d": None, "e": {"aa": "aa", "bb": None}}
     expected = {"a": 1, "b": {}, "e": {"aa": "aa"}}
     res = SaasHerder.remove_none_values(input)
     self.assertEqual(res, expected)