Update unit.utils.utils_test.UtilsTestCase.test_clean_kwargs

This reflects the new behavior in which all dunder kwargs are cleaned
This commit is contained in:
Erik Johnson 2015-05-15 11:17:28 -05:00
parent e285388b78
commit 150d4e25c7

View File

@ -321,7 +321,8 @@ class UtilsTestCase(TestCase):
def test_clean_kwargs(self):
self.assertDictEqual(utils.clean_kwargs(foo='bar'), {'foo': 'bar'})
self.assertDictEqual(utils.clean_kwargs(__pub_foo='bar'), {})
self.assertDictEqual(utils.clean_kwargs(__foo_bar='gwar'), {'__foo_bar': 'gwar'})
self.assertDictEqual(utils.clean_kwargs(__foo_bar='gwar'), {})
self.assertDictEqual(utils.clean_kwargs(foo_bar='gwar'), {'foo_bar': 'gwar'})
def test_check_state_result(self):
self.assertFalse(utils.check_state_result(None), "Failed to handle None as an invalid data type.")