'Deactivated users can\'t use webhooks'

def test_webhook_deactivated_user(self):

    user_profile = self.example_user('hamlet')
    email = user_profile.email
    do_deactivate_user(user_profile)
    api_key = self.get_api_key(email)
    url = ('/api/v1/external/jira?api_key=%s&stream=jira_custom' % (api_key,))
    data = self.fixture_data('jira', 'created_v2')
    result = self.client_post(url, data, content_type='application/json')
    self.assert_json_error_contains(result, 'Account    not    active', status_code=400)
