def test_delete_post_by_id(self): Post.delete_post_by_id(333) posts = Post.objects.all() self.assertEqual(len(posts), 0)