Use `isinstance( instead of issubclass(type(`

When we already have an `instance` it's less typing and faster to
use `isinstance`.
This commit is contained in:
Jordan Pittier
2017-01-27 11:11:29 +01:00
parent 4f6650fce2
commit fa36dcbe09
4 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ def test_middleware_response():
assert response.text == 'OK'
assert type(results[0]) is Request
assert type(results[1]) is Request
assert issubclass(type(results[2]), HTTPResponse)
assert isinstance(results[2], HTTPResponse)
def test_middleware_override_request():