File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 24
24
"GeoIP is required along with the GEOIP_PATH setting."
25
25
)
26
26
class GeoIPTest (unittest .TestCase ):
27
- addr = '128.249.1 .1'
27
+ addr = '75.41.39 .1'
28
28
fqdn = 'tmc.edu'
29
29
30
30
def test01_init (self ):
@@ -99,7 +99,7 @@ def test03_country(self, gethostbyname):
99
99
@mock .patch ('socket.gethostbyname' )
100
100
def test04_city (self , gethostbyname ):
101
101
"GeoIP city querying methods."
102
- gethostbyname .return_value = '128.249.1 .1'
102
+ gethostbyname .return_value = '75.41.39 .1'
103
103
g = GeoIP2 (country = '<foo>' )
104
104
105
105
for query in (self .fqdn , self .addr ):
@@ -122,7 +122,7 @@ def test04_city(self, gethostbyname):
122
122
# City information dictionary.
123
123
d = g .city (query )
124
124
self .assertEqual ('US' , d ['country_code' ])
125
- self .assertEqual ('Houston ' , d ['city' ])
125
+ self .assertEqual ('Dallas ' , d ['city' ])
126
126
self .assertEqual ('TX' , d ['region' ])
127
127
128
128
geom = g .geos (query )
You can’t perform that action at this time.
0 commit comments