Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/y/pygeoip-0.3.1/tests/test_country.py   pygeoip(Download)
 
import pygeoip
from tests.config import COUNTRY_DB_PATH, COUNTRY_V6_DB_PATH
 
 
class TestGeoIPCountryFunctions(unittest.TestCase):
    def setUp(self):
        self.gi = pygeoip.GeoIP(COUNTRY_DB_PATH)
        self.gi6 = pygeoip.GeoIP(COUNTRY_V6_DB_PATH)