'Helper method for sending a GET to the server. Verifies the expected status and returns the response.'

def send_get(self, client, query_parameters=None, expected_status=200):

    url = (((self.url + '?') + query_parameters) if query_parameters else self.url)
    response = client.get(url)
    self.assertEqual(expected_status, response.status_code)
    return response
