def test_asset_contains(self): assets = items.assets(*self.TEST_APP) self.assertTrue(self.ITEM_IN_CATALOG in assets) self.assertFalse(self.ITEM_NOT_IN_CATALOG in assets) schema = items.schema(*self.TEST_APP) self.assertTrue(schema[self.ITEM_IN_CATALOG] in assets) self.assertFalse(schema[self.ITEM_NOT_IN_CATALOG] in assets)
def setUpClass(cls): cls._schema = items.schema(*cls.TEST_APP) cls._inv = items.inventory(cls.TEST_APP[0], cls.TEST_ID64, cls._schema)