def test_complete_errors(self):

        # Start on following option before current is unique
        self.assertRaises(CommandError, self.cli_test, example_tree, ('c', 'c'))

        # Add invalid options to command
        self.assertRaises(CommandError, self.cli_test, example_tree, ('b0rk',))
Make sure erroneous completions raise exceptions
dataset/ETHPy150Open SpriteLink/NIPAP/nipap-cli/tests/cli-test.py/CliCheck.test_complete_errors