'Tests a valid 200 response for generate_short_url method.'

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

    mock_json = mock.Mock()
    mock_json.json.return_value = {'status_code': 200, 'data': {'url': 'http://mzl.la/LFolSf'}}
    mock_requests.post.return_value = mock_json
    eq_('http://mzl.la/LFolSf', generate_short_url(self.test_url))
