def testNoneValue(self): input = None expected = {} res = SaasHerder.remove_none_values(input) self.assertEqual(res, expected)
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)