def test_xff(self):
    result = get_client_ip({'HTTP_X_FORWARDED_FOR': '1.1.1.1, 127.0.0.1'})
    self.assertEquals(result, '1.1.1.1')
def test_xff(self):
    result = get_client_ip({'HTTP_X_FORWARDED_FOR': '1.1.1.1, 127.0.0.1'})
    self.assertEquals(result, '1.1.1.1')