def test_remove_None_values_removes_None_values_in_dict(self): random_input = factory.make_string() self.assertEqual({random_input: random_input}, remove_None_values({ random_input: random_input, factory.make_string(): None, }))
def test_remove_None_values_removes_None_values_in_dict(self): random_input = factory.getRandomString() self.assertEqual( {random_input: random_input}, remove_None_values({ random_input: random_input, factory.getRandomString(): None }))
def test_remove_None_values_leaves_empty_dict_untouched(self): self.assertEqual({}, remove_None_values({}))
def test_remove_None_values_leaves_empty_dict_untouched(self): self.assertEqual({}, remove_None_values({}))