def test_post_messages(self):
        self.assertEqual(Post.objects.all().count(), 3)
        self.assertEqual(Post.objects.filter(user=self.the_user1).count(), 2)
        self.assertEqual(Post.objects.filter(user=self.the_user2).count(), 1)

        deleted_post = Post.objects.get(user=self.the_user1, heading='post 2')
        deleted_post.delete()

        self.assertEqual(Post.objects.all().count(), 2)
        self.assertEqual(Post.objects.filter(user=self.the_user1).count(), 1)
        self.assertEqual(Post.objects.filter(user=self.the_user2).count(), 1)