def test_auto_type1(self):
        from nipap_cli import nipap_cli
        from pynipap import NipapError
        nipap_cli.cfg = self.mock_cfg()

        th = TestHelper()
        expected = []
        # add a few prefixes
        expected.append([th.add_prefix('10.0.0.0/16', 'reservation', 'test').prefix, 'reservation'])
        expected.append([th.add_prefix('10.0.0.0/24', 'assignment', 'test').prefix, 'assignment'])

        opts = {
            'prefix': '10.0.0.0/8',
            'type': 'reservation',
            'description': 'root'
            }
        expected.insert(0, [opts['prefix'], opts['type']])
        nipap_cli.add_prefix({}, opts, {})

        result = [[p.prefix, p.type] for p in Prefix.smart_search('')['result']]

        self.assertEqual(expected, result)
use jut to run the juttle program:
dataset/ETHPy150Open SpriteLink/NIPAP/tests/nipaptest.py/TestCliPrefixAutoType.test_auto_type1--crossover with--dataset/ETHPy150Open jut-io/jut-python-tools/tests/jut_run_tests.py/JutRunTests.test_jut_run_emit_to_text