mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Switch type comparison to isinstance
This commit is contained in:
parent
15826ca207
commit
84dce83860
1 changed files with 2 additions and 4 deletions
|
@ -110,12 +110,10 @@ class StateModuleTest(integration.ModuleCase,
|
|||
sls2 = self.run_function('state.sls', mods='gndn')
|
||||
|
||||
for state, ret in sls1.items():
|
||||
key_type = type(ret['__sls__'])
|
||||
self.assertTrue(key_type is str or key_type is type(None))
|
||||
self.assertTrue(isinstance(ret['__sls__'], type(None)))
|
||||
|
||||
for state, ret in sls2.items():
|
||||
key_type = type(ret['__sls__'])
|
||||
self.assertTrue(key_type is str or key_type is type(None))
|
||||
self.assertTrue(isinstance(ret['__sls__'], str))
|
||||
|
||||
def _remove_request_cache_file(self):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue