Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
un33k committed Nov 22, 2023
1 parent ad8b2f7 commit 8c9dcee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipware/tests/tests_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ def test_meta_singleton_proxy_count(self):
}
result = get_client_ip(request, proxy_count=2)
self.assertEqual(result, ("177.139.233.139", True))

def test_meta_proxy_trusted_ips_exact_ip_check(self):
request = HttpRequest()
request.META = {
'HTTP_X_FORWARDED_FOR': '177.139.233.139, 198.84.193.157, 198.84.193.158',
}
result = get_client_ip(request, proxy_trusted_ips=['198.84.193.157', '198.84.193.158'])
self.assertEqual(result, ("177.139.233.139", True))
self.assertEqual(result, ("177.139.233.139", True))

0 comments on commit 8c9dcee

Please sign in to comment.