You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 line
469 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. import webnotes
  4. import unittest
  5. class TestGeoIP(unittest.TestCase):
  6. def test_geo_ip(self):
  7. return
  8. from webnotes.sessions import get_geo_ip_country
  9. self.assertEquals(get_geo_ip_country("223.29.223.255"), "India")
  10. self.assertEquals(get_geo_ip_country("4.18.32.80"), "United States")
  11. self.assertEquals(get_geo_ip_country("217.194.147.25"), "United States")