From: Michael Tremer Date: Fri, 22 Mar 2024 14:45:41 +0000 (+0000) Subject: tests: Add tests for #13236 X-Git-Tag: 0.9.18~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a068b791b8cc9ed4b349d546a7b6f814f14b215;p=location%2Flibloc.git tests: Add tests for #13236 Signed-off-by: Michael Tremer --- diff --git a/tests/python/networks-dedup.py b/tests/python/networks-dedup.py index 34a82d4..5b78a4b 100755 --- a/tests/python/networks-dedup.py +++ b/tests/python/networks-dedup.py @@ -139,6 +139,27 @@ class Test(unittest.TestCase): ("10.0.0.0/8",), ) + def test_bug13236(self): + self.__test( + ( + ("209.38.0.0/16", "US", None), + ("209.38.1.0/24", "US", 14061), + ("209.38.160.0/22", "US", 14061), + ("209.38.164.0/22", "US", 14061), + ("209.38.168.0/22", "US", 14061), + ("209.38.172.0/22", "US", 14061), + ("209.38.176.0/20", "US", 14061), + ("209.38.192.0/19", "US", 14061), + ("209.38.224.0/19", "US", 14061), + ), + ( + "209.38.0.0/16", + "209.38.1.0/24", + "209.38.160.0/19", + "209.38.192.0/18", + ), + ) + if __name__ == "__main__": unittest.main()