Esempio n. 1
0
 def test_create_db_if_not_exists_creates_db_does_not_cause_error_when_db_does_exist(self):
     self.create_database()
     try:
         database.create_db_if_not_exists(db_name=self.TEST_DB)
     except Exception as e:
         self.fail('create_db_if_not_exists() raised exception: %s' % e)
     finally:
         self.drop_database()
Esempio n. 2
0
 def test_create_db_if_not_exists_creates_db_does_not_cause_error_when_db_does_exist(self):
     self.create_database()
     try:
         database.create_db_if_not_exists(db_name=self.TEST_DB)
     except Exception as e:
         self.fail('create_db_if_not_exists() raised exception: %s' % e)
     finally:
         self.drop_database()
Esempio n. 3
0
 def test_create_db_if_not_exists_creates_db_when_db_does_not_exist(self):
     database.create_db_if_not_exists(db_name=self.TEST_DB)
     try:
         self.assertTrue(database._db_exists(db_name=self.TEST_DB))
     finally:
         self.drop_database()
Esempio n. 4
0
 def test_create_db_if_not_exists_creates_db_when_db_does_not_exist(self):
     database.create_db_if_not_exists(db_name=self.TEST_DB)
     try:
         self.assertTrue(database._db_exists(db_name=self.TEST_DB))
     finally:
         self.drop_database()