def test_get_sensors_pack_missing_sensors(self): loader = ContentPackLoader() fail_pack_path = os.path.join( os.path.dirname(os.path.realpath(__file__)), 'resources/packs/pack2') self.assertTrue(os.path.exists(fail_pack_path)) try: loader._get_sensors(fail_pack_path) self.fail('Empty packs must throw exception.') except: pass
def test_get_sensors_pack_missing_sensors(self): loader = ContentPackLoader() fail_pack_path = os.path.join(RESOURCES_DIR, "packs/pack2") self.assertTrue(os.path.exists(fail_pack_path)) self.assertEqual(loader._get_sensors(fail_pack_path), None)
def test_get_sensors_pack_missing_sensors(self): loader = ContentPackLoader() fail_pack_path = os.path.join(RESOURCES_DIR, 'packs/pack2') self.assertTrue(os.path.exists(fail_pack_path)) self.assertEqual(loader._get_sensors(fail_pack_path), None)