Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
 def test_2(self):
     """test list databases"""
     r = sdk.cmd_listdatabases()
     self.assertTrue("test" in r)
     self.assertEqual(len(r),1)