class TestMysqlTaskDB(TestTaskDB, unittest.TestCase): @classmethod def setUpClass(self): from database.mysql.taskdb import TaskDB self.taskdb = TaskDB(database='pyspider_test_taskdb') @classmethod def tearDownClass(self): self.taskdb._execute('DROP DATABASE pyspider_test_taskdb')