I need to test a function with different parameters, and the most proper way for this seems to be using the `with self.subTest(...)` context manager. 

However, the function writes something to the db, and it ends up in an inconsistent state. I can delete the things I write, but it would be cleaner if I could recreate the whole db completely. Is there a way to do that?