@mock.patch('requests.post', empty_response)
def test_scrape_call(api, auth_header, mocker):
    mocker.spy(requests, 'post')
    api.scrape('http://chinese.portal.com.ch')
    assert (requests.post.call_count == 1)
    requests.post.assert_called_once_with(urljoin(client.ANACODE_API_URL, 'scrape/'), headers=auth_header, json={'url': 'http://chinese.portal.com.ch'})
@mock.patch('requests.post', empty_response)
def test_scrape_call(api, auth_header, mocker):
    mocker.spy(requests, 'post')
    api.scrape('http://chinese.portal.com.ch')
    assert (requests.post.call_count == 1)
    requests.post.assert_called_once_with(urljoin(client.ANACODE_API_URL, 'scrape/'), headers=auth_header, json={'url': 'http://chinese.portal.com.ch'})