class MyTest(unittest.TestCase):

    def setUp(self):
        connection.cursor().execute('CREATE TABLE ...')

def tearDown(self):
    pass
How to create table during Django tests with managed = False