def test_simple(self):
    resp = self.client.get('/auth/login/')
    assert (resp.status_code == 302)
    parsed_location = urlparse(resp.headers['Location'])
    assert (parsed_location.scheme == 'https')
    assert (parsed_location.netloc == 'accounts.google.com')
    assert (parsed_location.path == '/o/oauth2/auth')
    assert (parse_qs(parsed_location.query) == {'scope': ['email'], 'redirect_uri': ['http://localhost/auth/complete/'], 'response_type': ['code'], 'client_id': ['aaaaaaaaaaaa'], 'access_type': ['offline'], 'approval_prompt': ['force']})
def test_simple(self):
    resp = self.client.get('/auth/login/')
    assert (resp.status_code == 302)
    parsed_location = urlparse(resp.headers['Location'])
    assert (parsed_location.scheme == 'https')
    assert (parsed_location.netloc == 'accounts.google.com')
    assert (parsed_location.path == '/o/oauth2/auth')
    assert (parse_qs(parsed_location.query) == {'scope': ['email'], 'redirect_uri': ['http://localhost/auth/complete/'], 'response_type': ['code'], 'client_id': ['aaaaaaaaaaaa'], 'access_type': ['offline'], 'approval_prompt': ['force']})