def test_vrf_edit_default(self):
        # try to set an RT, which should fail on the default VRF
        with self.assertRaisesRegexp(xmlrpclib.Fault, 'Invalid input for column rt, must be NULL for VRF id 0'):
            s.edit_vrf({ 'auth': ad, 'vrf': { 'id': 0 }, 'attr': { 'rt': '123:456a' }})

        res_edit = s.edit_vrf({ 'auth': ad, 'vrf': { 'id': 0 }, 'attr': {
            'name': 'FOO', 'description': 'BAR', 'tags': [] }})
        res_list = s.list_vrf({ 'auth': ad, 'vrf': { } })[0]
        del(res_list['id'])
        self.assertEqual(self._mangle_vrf_result(res_list), { 'rt': None,
            'name': 'FOO', 'description': 'BAR', 'tags': [], 'avps': {} }, 'VRF change incorrect')
Edit the default VRF and verify the change
dataset/ETHPy150Open SpriteLink/NIPAP/tests/xmlrpc.py/NipapXmlTest.test_vrf_edit_default