def test_3(self): """test copy database""" r = sdk.cmd_copydatabase(db_old="test", db_new="test2") self.assertTrue(r) r = sdk.cmd_listdatabases() self.assertTrue("test2" in r) self.assertEqual(len(r),2)
def test_4(self): """test remove database""" r = sdk.cmd_removedatabase(db="test2") self.assertTrue(r) r = sdk.cmd_listdatabases() self.assertTrue("test" in r) self.assertFalse("test2" in r) self.assertEqual(len(r),1)
def test_2(self): """test list databases""" r = sdk.cmd_listdatabases() self.assertTrue("test" in r) self.assertEqual(len(r),1)