The license.txt file has been replaced with LICENSE for quite a while now. INAL but it didn't seem accurate to say "hey, checkout license.txt although there's no such file". Apart from this, there were inconsistencies in the headers altogether...this change brings consistency.
11 lines
No EOL
441 B
Python
11 lines
No EOL
441 B
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: MIT. See LICENSE
|
|
import unittest
|
|
|
|
class TestGeoIP(unittest.TestCase):
|
|
def test_geo_ip(self):
|
|
return
|
|
from frappe.sessions import get_geo_ip_country
|
|
self.assertEqual(get_geo_ip_country("223.29.223.255"), "India")
|
|
self.assertEqual(get_geo_ip_country("4.18.32.80"), "United States")
|
|
self.assertEqual(get_geo_ip_country("217.194.147.25"), "United States") |