'Tests a valid 403 response for generate_short_url method.'

@mock.patch('kitsune.wiki.utils.requests')
def test_generate_short_url_403(self, mock_requests):

    mock_json = mock.Mock()
    mock_json.json.return_value = {'status_code': 403}
    mock_requests.post.return_value = mock_json
    self.assertRaises(BitlyRateLimitException, generate_short_url, self.test_url)
