File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -912,11 +912,11 @@ def test_domain_match(self):
912912 self .assertFalse (user_domain_match ("x.y.com" , ".m" ))
913913 self .assertFalse (user_domain_match ("x.y.com" , "" ))
914914 self .assertFalse (user_domain_match ("x.y.com" , "." ))
915+ # not both HDNs, so must string-compare equal to match
915916 self .assertTrue (user_domain_match ("192.168.1.1" , "192.168.1.1" ))
916917 self .assertTrue (user_domain_match ("[::1]" , "[::1]" ))
917- self .assertFalse (user_domain_match ("[::1]" , "::1" ))
918918 self .assertTrue (domain_match ("[2001:db8:85a3::8a2e:370:7334]" , "[2001:db8:85a3::8a2e:370:7334]" ))
919- # not both HDNs, so must string-compare equal to match
919+ self . assertFalse ( user_domain_match ( "[::1]" , "::1" ))
920920 self .assertFalse (user_domain_match ("192.168.1.1" , ".168.1.1" ))
921921 self .assertFalse (user_domain_match ("192.168.1.1" , "." ))
922922 # empty string is a special case
You can’t perform that action at this time.
0 commit comments