From 8a068b791b8cc9ed4b349d546a7b6f814f14b215 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 22 Mar 2024 14:45:41 +0000 Subject: [PATCH] tests: Add tests for #13236 Signed-off-by: Michael Tremer --- tests/python/networks-dedup.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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() -- 2.39.5