mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
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:
parent
e285388b78
commit
150d4e25c7
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user