Exemple #1
0
    def setUp(self):
        self.parent_coll = "/humgen/projects/serapis_staging/test-icmds/test-mk-rm-coll"
        self.coll_created = "/humgen/projects/serapis_staging/test-icmds/test-mk-rm-coll/new_coll"

        files = BatonCollectionAPI.list_collections(self.parent_coll)
        print("Files: %s" % files)
        self.assertFalse(self.coll_created in files)
Exemple #2
0
 def test_create(self):
     ICmdsCollectionAPI.create(self.coll_created)
     contents = BatonCollectionAPI.list_collections(self.parent_coll)
     print("Contents: %s" % contents)
     self.assertTrue(self.coll_created in contents)
Exemple #3
0
 def tearDown(self):
     ICmdsCollectionAPI.remove(self.coll_created)
     contents = BatonCollectionAPI.list_collections(self.parent_coll)
     self.assertFalse(self.coll_created in contents)