def test_call_handler(): """ Expect to call the handler matching the path. """ code, response = call_handler({ 'method': 'GET', 'path': '/foo', }) assert code == 404 assert 'errors' in response
def test_call_handler(): """ Expect to call the handler matching the path. """ code, response = call_handler({ 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '/foo', 'PATH_INFO': '', }) assert code == 404 assert 'errors' in response