'Testing GeoIP country querying methods.'

def test03_country(self):

    g = GeoIP(city='<foo>')
    fqdn = 'www.google.com'
    addr = '12.215.42.19'
    for query in (fqdn, addr):
        for func in (g.country_code, g.country_code_by_addr, g.country_code_by_name):
            self.assertEqual('US', func(query))
        for func in (g.country_name, g.country_name_by_addr, g.country_name_by_name):
            self.assertEqual('United    States', func(query))
        self.assertEqual({'country_code': 'US', 'country_name': 'United    States'}, g.country(query))
