Cleaning up a database in django before every test method
Make them in two different functions both are not test function. Finally call the dependent functions from one test function.
You can use the tearDown
method. It will be called after your test is run. You can delete all Blahs there.
Use django.test.TestCase
not unittest.TestCase
. And it works in all major versions of Django!