mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
@@ -64,7 +64,7 @@ class GetInternalWSGIApplicationTest(unittest.TestCase):
|
||||
|
||||
from .wsgi import application
|
||||
|
||||
self.assertTrue(app is application)
|
||||
self.assertIs(app, application)
|
||||
|
||||
@override_settings(WSGI_APPLICATION=None)
|
||||
def test_default(self):
|
||||
@@ -85,7 +85,7 @@ class GetInternalWSGIApplicationTest(unittest.TestCase):
|
||||
try:
|
||||
app = get_internal_wsgi_application()
|
||||
|
||||
self.assertTrue(app is fake_app)
|
||||
self.assertIs(app, fake_app)
|
||||
finally:
|
||||
basehttp.get_wsgi_application = _orig_get_wsgi_app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user