@@ -0,0 +1,2163 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0A%22%22%22%0ATest that a series of encoded test IPs match haiku for the current%0Aset of dictionaries and schema, and that a series of decoded test%0Ahaiku match IPs for the current dictionaries and schema. These tests%0Amust be updated whenever the dictionaries or schema are changed.%0A%22%22%22%0A%0Aimport unittest%0A%0Afrom pyhipku import encode%0Afrom pyhipku import decode%0A%0A%0Aclass PyhipkuTestCase(unittest.TestCase):%0A    def setUp(self):%0A        self.ipv4_pairs = %5B%0A            %5B'0.0.0.0', 'The agile beige ape%5Cnaches in the ancient canyon.%5Cn'%0A             'Autumn colors blow.%5Cn'%5D,%0A            %5B'127.0.0.1', 'The hungry white ape%5Cnaches in the ancient canyon'%0A             '.%5CnAutumn colors crunch.%5Cn'%5D,%0A            %5B'82.158.98.2', 'The fearful blue newt%5Cnwakes in the foggy desert'%0A             '.%5CnAutumn colors dance.%5Cn'%5D,%0A            %5B'255.255.255.255', 'The weary white wolf%5Cnyawns in the '%0A             'wind-swept wetlands.%5CnYellowwood leaves twist.%5Cn'%5D%0A        %5D%0A        self.ipv6_pairs = %5B%0A            %5B'0:0:0:0:0:0:0:0', 'Ace ants and ace ants%5Cnaid ace ace ace ace '%0A             'ace ants.%5CnAce ants aid ace ants.%5Cn'%5D,%0A            %5B'2c8f:27aa:61fd:56ec:7ebe:d03a:1f50:475f', 'Cursed mobs and '%0A             'crazed queens%5Cnfeel wrong gruff tired moist slow sprats.%5CnFaint '%0A             'bulls dread fond fruits.%5Cn'%5D,%0A            %5B'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', 'Young yaks and '%0A             'young yaks%5Cntend young young young young young yaks.%5CnYoung '%0A             'yaks tend young yaks.%5Cn'%5D%0A        %5D%0A%0A    def test_ipv4_encode(self):%0A        for i in range(len(self.ipv4_pairs)):%0A            assert encode(self.ipv4_pairs%5Bi%5D%5B0%5D) == self.ipv4_pairs%5Bi%5D%5B1%5D%0A%0A    def test_ipv6_encode(self):%0A        for i in range(len(self.ipv6_pairs)):%0A            assert encode(self.ipv6_pairs%5Bi%5D%5B0%5D) == self.ipv6_pairs%5Bi%5D%5B1%5D%0A%0A    def test_ipv4_decode(self):%0A        for i in range(len(self.ipv4_pairs)):%0A            assert decode(self.ipv4_pairs%5Bi%5D%5B1%5D) == self.ipv4_pairs%5Bi%5D%5B0%5D%0A%0A    def test_ipv6_decode(self):%0A        for i in range(len(self.ipv6_pairs)):%0A            assert decode(self.ipv6_pairs%5Bi%5D%5B1%5D) == self.ipv6_pairs%5Bi%5D%5B0%5D%0A

Add another test