Closed
Description
It seems the == operator evals to True for every request object.
from aiohttp.test_utils import make_mocked_request
def test_path_equals():
req = make_mocked_request('GET', '/a/')
req2 = make_mocked_request('GET', '/b/')
assert req.path != req2.path
assert req != req2
def test_method_equals():
req = make_mocked_request('GET', '/a/')
req2 = make_mocked_request('POST', '/a/')
assert req.method != req2.method
assert req != req2
def test_equals():
req = make_mocked_request('GET', '/this/isnot/evenclose')
req2 = make_mocked_request('OPTIONS', '/search?query=what')
assert req.path != req2.path
assert req.method != req2.method
assert req != req2Is this intentional?