Home
last modified time | relevance | path

Searched refs:get_addr (Results 1 – 1 of 1) sorted by relevance

/unit/test/
H A Dtest_forwarded_header.py37 def get_addr(self, *args, **kwargs): member in TestForwardedHeader
59 assert self.get_addr() == '127.0.0.1', 'ipv4 default addr'
60 assert self.get_addr('ipv6') == '::1', 'ipv6 default addr'
62 assert self.get_addr(xff='blah') == '127.0.0.1', 'bad xff'
83 assert self.get_addr() == '127.0.0.1', 'ipv4 default addr 2'
84 assert self.get_addr('ipv6') == '::1', 'ipv6 default addr 2'
153 assert self.get_addr('ipv6', ip) == ip, 'replace'
171 self.get_addr(xff='1.1.1.1, 10.5.2.1') == '1.1.1.1'
191 self.get_addr(
206 assert self.get_addr() == '127.0.0.1', 'ipv4 default addr'
[all …]