def test_on_delete(self):
        user = self.User(username='xx')
        user.save()
        before = self.User.count()
        user.delete()
        self.assertEqual(before - 1, self.User.count())
dataset/ETHPy150Open tevino/mongu/tests/test_counter.py/CounterTests.test_on_delete/original