'Ensure the token and secret are passed correctly.'

@patch('kitsune.kpi.surveygizmo_utils.requests')
def test_creds(self, mock_requests):

    mock_requests.get.return_value.content = SURVEY_GIZMO_EMPTY_RESPONSE
    with self.settings(SURVEYGIZMO_API_TOKEN='mytoken', SURVEYGIZMO_API_TOKEN_SECRET='mysecret'):
        get_email_addresses('general', datetime(2016, 1, 1), datetime(2016, 1, 2))
        url = mock_requests.get.call_args[0][0]
        ok_(('api_token=mytoken' in url))
        ok_(('api_token_secret=mysecret' in url))
