Switch type comparison to isinstance

This commit is contained in:
Seth House 2016-12-08 02:07:47 -07:00
parent 15826ca207
commit 84dce83860

View File

@ -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):
'''