'Passing kwargs to override defaults.'

def test_override_flow_via_kwargs(self):

    flow = client.OAuth2WebServerFlow(client_id='client_id+1', client_secret='secret+1', scope='foo', redirect_uri=client.OOB_CALLBACK_URN, user_agent='unittest-sample/1.0', access_type='online', response_type='token')
    authorize_url = flow.step1_get_authorize_url()
    parsed = urllib.parse.urlparse(authorize_url)
    q = urllib.parse.parse_qs(parsed[4])
    self.assertEqual('client_id+1', q['client_id'][0])
    self.assertEqual('token', q['response_type'][0])
    self.assertEqual('foo', q['scope'][0])
    self.assertEqual(client.OOB_CALLBACK_URN, q['redirect_uri'][0])
    self.assertEqual('online', q['access_type'][0])
