]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - tests/python/networks-dedup.py
tests: Add tests for #13236
[people/ms/libloc.git] / tests / python / networks-dedup.py
index 34a82d41bce1921f23ea5631a304b7cca294be57..5b78a4ba8d33b88eee72cfe76f007b3cde3f072c 100755 (executable)
@@ -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()