def test_n_continents_returns_zero_when_no_data(self):
     n = cache.n_continents()
     assert n == 0
    def test_n_continents_returned(self, geoip_mock, current_app):
        current_app.config = {'GEO': True}
        self.create_mock_ip_addresses(geoip_mock)
        n = cache.n_continents()

        assert n == 1