def test_verify_prefix(self):
        """ Verify data after upgrade
        """
        expected_base = {
                'alarm_priority': None,
                'authoritative_source': 'nipap',
                'avps': {},
                'comment': None,
                'country': None,
                'description': 'test',
                'expires': None,
                'external_key': None,
                'family': 4,
                'indent': 0,
                'inherited_tags': [],
                'monitor': None,
                'node': None,
                'order_id': None,
                'customer_id': None,
                'pool_name': None,
                'tags': [],
                'type': 'reservation',
                'vrf_rt': None,
                'vrf_id': 0,
                'vrf_name': 'default',
                'vlan': None,
                'status': 'assigned'
            }
        expected_prefixes = [
                { 'prefix': '192.168.0.0/16', 'indent': 0, 'total_addresses':
                    '65536', 'used_addresses': '8192', 'free_addresses': '57344' },
                { 'prefix': '192.168.0.0/20', 'indent': 1, 'total_addresses':
                    '4096', 'used_addresses': '768', 'free_addresses': '3328',
                    'pool_name': 'upgrade-test' },
                { 'prefix': '192.168.0.0/24', 'indent': 2, 'total_addresses':
                    '256', 'used_addresses': '0', 'free_addresses': '256' },
                { 'prefix': '192.168.1.0/24', 'indent': 2, 'total_addresses':
                    '256', 'used_addresses': '0', 'free_addresses': '256' },
                { 'prefix': '192.168.2.0/24', 'indent': 2, 'total_addresses':
                    '256', 'used_addresses': '0', 'free_addresses': '256' },
                { 'prefix': '192.168.32.0/20', 'indent': 1, 'total_addresses':
                    '4096', 'used_addresses': '256', 'free_addresses': '3840' },
                { 'prefix': '192.168.32.0/24', 'indent': 2, 'total_addresses':
                    '256', 'used_addresses': '1', 'free_addresses': '255' },
                { 'prefix': '192.168.32.1/32', 'display_prefix': '192.168.32.1',
                    'indent': 3, 'total_addresses': '1', 'used_addresses': '1',
                    'free_addresses': '0' },
                { 'prefix': '2001:db8:1::/48', 'indent': 0, 'family': 6,
                    'pool_name': 'upgrade-test',
                    'total_addresses': '1208925819614629174706176',
                    'used_addresses': '18446744073709551616',
                    'free_addresses': '1208907372870555465154560' },
                { 'prefix': '2001:db8:1::/64', 'indent': 1, 'family': 6,
                    'total_addresses': '18446744073709551616', 'used_addresses': '0',
                    'free_addresses': '18446744073709551616' },
                { 'prefix': '2001:db8:2::/48', 'indent': 0, 'family': 6,
                    'total_addresses': '1208925819614629174706176',
                    'used_addresses': '0',
                    'free_addresses': '1208925819614629174706176' },
                ]
        expected = []
        for p in expected_prefixes:
            pexp = expected_base.copy()
            for key in p:
                pexp[key] = p[key]
            if 'display_prefix' not in pexp:
                pexp['display_prefix'] = p['prefix']
            expected.append(pexp)

        self.assertEqual(expected, self._mangle_prefix_result(s.list_prefix({ 'auth': ad, })))
dataset/ETHPy150Open SpriteLink/NIPAP/tests/upgrade-after.py/TestCheckdata.test_verify_prefix/original