import requests def test_request_response(mockserver): mock_server_port = mockserver url = 'http://localhost:{port}/users'.format(port=mock_server_port) response = requests.get(url) assert response.ok