'Ensure the token and secret are passed correctly.'

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

    with self.settings(SURVEYGIZMO_API_TOKEN='mytoken', SURVEYGIZMO_API_TOKEN_SECRET='mysecret'):
        add_email_to_campaign('general', 'a@example.com')
        url = mock_requests.put.call_args[0][0]
        ok_(('api_token=mytoken' in url))
        ok_(('api_token_secret=mysecret' in url))
