def tearDown(self): self.tp = None self.data = None TwitterAccount.drop_collection() Tweet.drop_collection()