def test_auth_url_with_channel(self):
    client = googlemaps.Client(key='AIzaasdf', client_id='foo', client_secret='a2V5', channel='MyChannel_1')
    auth_url = client._generate_auth_url('/test', {'param': 'param'}, accepts_clientid=True)
    self.assertEqual(auth_url, '/test?param=param&channel=MyChannel_1&client=foo&signature=OH18GuQto_mEpxj99UimKskvo4k=')
    auth_url = client._generate_auth_url('/test', {'param': 'param'}, accepts_clientid=False)
    self.assertEqual(auth_url, '/test?param=param&key=AIzaasdf')
def test_auth_url_with_channel(self):
    client = googlemaps.Client(key='AIzaasdf', client_id='foo', client_secret='a2V5', channel='MyChannel_1')
    auth_url = client._generate_auth_url('/test', {'param': 'param'}, accepts_clientid=True)
    self.assertEqual(auth_url, '/test?param=param&channel=MyChannel_1&client=foo&signature=OH18GuQto_mEpxj99UimKskvo4k=')
    auth_url = client._generate_auth_url('/test', {'param': 'param'}, accepts_clientid=False)
    self.assertEqual(auth_url, '/test?param=param&key=AIzaasdf')