mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #25780 -- Removed redundant status code assertions from tests
This commit is contained in:
committed by
Claude Paroz
parent
68554d1676
commit
13dba4dba3
@@ -729,7 +729,6 @@ class RequestFactoryTest(SimpleTestCase):
|
||||
request = self.request_factory.get('/somewhere/')
|
||||
response = get_view(request)
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, 'This is a test')
|
||||
|
||||
def test_trace_request_from_factory(self):
|
||||
@@ -740,5 +739,4 @@ class RequestFactoryTest(SimpleTestCase):
|
||||
protocol = request.META["SERVER_PROTOCOL"]
|
||||
echoed_request_line = "TRACE {} {}".format(url_path, protocol)
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, echoed_request_line)
|
||||
|
||||
Reference in New Issue
Block a user