def test_destroy_db(self):
     db = create_db("root", "password", "wcloudtest", "wcloud", "password")
     destroy_db("root", "password", db)
     engine = connect("root", "password")
     dbs = engine.execute("SHOW databases LIKE '%s'" % db).fetchall()
     assert len(dbs) == 0
Beispiel #2
0
 def test_destroy_db(self):
     db = create_db("root", "password", "wcloudtest", "wcloud", "password")
     destroy_db("root", "password", db)
     engine = connect("root", "password")
     dbs = engine.execute("SHOW databases LIKE '%s'" % db).fetchall()
     assert len(dbs) == 0
 def test_create_db(self):
     """
     Test that we can successfully create a database.
     """
     db = create_db("root", "password", "wcloudtest", "wcloud", "password")
     assert db.startswith("wcloudtest")
Beispiel #4
0
 def test_create_db(self):
     """
     Test that we can successfully create a database.
     """
     db = create_db("root", "password", "wcloudtest", "wcloud", "password")
     assert db.startswith("wcloudtest")