Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 def setUpClass(cls):
     cls._schema = items.schema(*cls.TEST_APP)
     cls._inv = items.inventory(cls.TEST_APP[0], cls.TEST_ID64, cls._schema)
Exemple #4
0
 def setUpClass(cls):
     cls._schema = items.schema(*cls.TEST_APP)
     cls._inv = items.inventory(cls.TEST_APP[0], cls.TEST_ID64, cls._schema)