def test_system_config(self): try: self.assertNotEqual(None, Config.get_system_config()) except IOError: # There is no system config pass
def test_system_config(self): try: assert Config.get_system_config() is not None except IOError: # There is no system config pass