def it_should_trigger_parser_error_if_dirpath_not_a_directory(
            self, args_, parser_):
        # fixture ----------------------
        args_.dirpath = 'foobar'
        repackage_command = RepackageCommand(parser_)
        # exercise ---------------------
        repackage_command.validate(args_)
        # verify -----------------------
        parser_.error.assert_called_once_with(ANY)
        assert 'DIRPATH' in parser_.error.call_args[0][0]
        assert 'foobar' in parser_.error.call_args[0][0]
dataset/ETHPy150Open python-openxml/opc-diag/tests/test_cli.py/DescribeRepackageCommand.it_should_trigger_parser_error_if_dirpath_not_a_directory/original