def setUpClass(cls): model_test_case.ModelTestCase.setUpClass() # NOTE: This is done on class setup instead of test setup because it's # very slow. This unfortunately means that any mutation of the database # within a test is persisted for the rest of the tests in each test # class. fixtures.reset_db_with_fixtures()
def setUp(self): """reset test db with fixtures before each run""" reset_db_with_fixtures(db=db)