mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #25780 -- Removed redundant status code assertions from tests
This commit is contained in:
parent
68554d1676
commit
13dba4dba3
11 changed files with 0 additions and 53 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue