def test_get_current_identity_ip(self): """IP address is stored in auth context.""" self.call('1.2.3.4', '*****@*****.**') self.assertEqual(ipaddr.ip_from_string('1.2.3.4'), api.get_current_identity_ip())
def test_get_current_identity_ip(self): """IP address is stored in auth context.""" self.call('1.2.3.4', '*****@*****.**') self.assertEqual( ipaddr.ip_from_string('1.2.3.4'), api.get_current_identity_ip())
def get(self): self.response.write(ipaddr.ip_to_string(api.get_current_identity_ip()))