def test_geoip(self):
        expected_ll = {
            'longitude': '-120.4553',
            'latitude': '35.3471'
        }

        ll = configuration_ajax.user_geoip(request=self.__http_request)
        ll_json = json.loads(ll.content.decode("utf-8"))

        self.assertEqual(
            ll_json, expected_ll,
            'Expected CalPoly location = ' + str(
                expected_ll
            ) + ', found = ' + str(ll.content)
        )
AJAX test: configuration.geoip
dataset/ETHPy150Open satnet-project/server/services/configuration/tests/test_ajax.py/JRPCSegmentsTest.test_geoip