def test_post_not_exists(self, mock_post):
        post_storage = Storage()

        mock_post.objects.get.side_effect = ObjectDoesNotExist
        response = post_storage.post_exists(1)

        assert response is False
    def test_post_exists(self, mock_post):
        post_storage = Storage()

        post = Mock()
        mock_post.objects.get.return_value = post
        response = post_storage.post_exists(1)

        assert response is True