def test_works_for_nonexisting_kwargs(self): self.assertEqual( False, stringified_dict_contains_value('non_exisiting_kwarg', '5', "{'test': 5}"))
def test_works_for_kwargs_in_different_parts_of_string(self): for key, value in [('key1', '1'), ('key2', '2'), ('key3', '3')]: self.assertEqual( True, stringified_dict_contains_value( key, value, "{'key1': 1, 'key2': 2, 'key3': 3}"))
def test_stringifies_args(self): self.assertEqual( True, stringified_dict_contains_value('test', 5, "{'test': 5}"))
def test_works_for_kwargs_in_different_parts_of_string(self): for key, value in [('key1', '1'), ('key2', '2'), ('key3', '3')]: self.assertEqual( True, stringified_dict_contains_value(key, value, "{'key1': 1, 'key2': 2, 'key3': 3}") )
def test_works_for_nonexisting_kwargs(self): self.assertEqual( False, stringified_dict_contains_value('non_exisiting_kwarg', '5', "{'test': 5}") )
def test_stringifies_args(self): self.assertEqual( True, stringified_dict_contains_value('test', 5, "{'test': 5}") )
def test_works_for_no_kwargs(self): self.assertEqual( False, stringified_dict_contains_value('foo', 'bar', None) )