def test_n_countries_returns_zero_when_no_data(self): n = cache.n_countries() assert n == 0
def test_n_countries_returned(self, geoip_mock, current_app): current_app.config = {'GEO': True} self.create_mock_ip_addresses(geoip_mock) n = cache.n_countries() assert n == 2