Exemple #1
0
 def test_drop_table(self):
     if settings.DATABASE_ENGINE == "gae":
         return
     database.drop_table(Comment)
     self.assertFalse(database.exists_table(Comment))
     database.create_table(Comment)
Exemple #2
0
 def test_create_table(self):
     if settings.DATABASE_ENGINE == "gae":
         return
     self.assertTrue(database.exists_table(Article))