def METHOD_NAME(self, mock_run_command):
    def run_command_side_effect(command, **kwargs):
        if "is-enabled" in command:
            return "enabled", 0
        elif "is-active" in command:
            return "active", 0
        else:
            raise Exception("unknown command")
    mock_run_command.side_effect = run_command_side_effect
    runner = CliRunner()
    result = runner.invoke(sonic_bootchart.cli.commands['show'], [])
    assert not result.exit_code
    assert result.output == \
            "Status    Operational Status      Frequency    Time (sec)  Output\n"                               \
            "--------  --------------------  -----------  ------------  ------------------------------------\n" \
            "enabled   active                         25            20  /run/log/bootchart-20220504-1040.svg\n" \
            "                                                           /run/log/bootchart-20220504-1045.svg\n"
    result = runner.invoke(sonic_bootchart.cli.commands["config"], ["--time", "2", "--frequency", "50"])
    assert not result.exit_code
    result = runner.invoke(sonic_bootchart.cli.commands['show'], [])
    assert not result.exit_code
    assert result.output == \
            "Status    Operational Status      Frequency    Time (sec)  Output\n"                               \
            "--------  --------------------  -----------  ------------  ------------------------------------\n" \
            "enabled   active                         50             2  /run/log/bootchart-20220504-1040.svg\n" \
            "                                                           /run/log/bootchart-20220504-1045.svg\n"
    # Input validation tests
    result = runner.invoke(sonic_bootchart.cli.commands["config"], ["--time", "0", "--frequency", "50"])
    assert result.exit_code
    result = runner.invoke(sonic_bootchart.cli.commands["config"], ["--time", "2", "--frequency", "-5"])
    assert result.exit_code