diff --git a/tweets/tests.py b/tweets/tests.py index bc10e5e..939bfda 100644 --- a/tweets/tests.py +++ b/tweets/tests.py @@ -77,7 +77,7 @@ def setUp(self): def test_success_get(self): response = self.client.get(self.url) self.assertEqual(response.status_code, 200) - self.assertEqual(response.context["tweet"], self.tweet) + self.assertEqual(Tweet.objects.get(content=self.tweet.content), response.context["tweet"]) class TestTweetDeleteView(TestCase):