@mock.patch(PYCOUNTRY)
def test_lookup_via_name(self, mocked_pycountry):
    mocked_pycountry.return_value = 'country_object'
    expected_calls = [mock.call(name='United Kingdom')]
    assert (country_iso_code('United Kingdom') == 'country_object')
    assert (mocked_pycountry.mock_calls == expected_calls)
    assert (mocked_pycountry.call_count == 1)
    country_iso_code.cache_clear()
@mock.patch(PYCOUNTRY)
def test_lookup_via_name(self, mocked_pycountry):
    mocked_pycountry.return_value = 'country_object'
    expected_calls = [mock.call(name='United Kingdom')]
    assert (country_iso_code('United Kingdom') == 'country_object')
    assert (mocked_pycountry.mock_calls == expected_calls)
    assert (mocked_pycountry.call_count == 1)
    country_iso_code.cache_clear()