@mock_plugin_manager(plugins=[])
def test_should_display_no_plugins(self):
    with redirect_stdout(io.StringIO()) as temp_stdout:
        plugins_command.dump_plugins(self.parser.parse_args(['plugins', '--output=json']))
        stdout = temp_stdout.getvalue()
    assert ('No plugins loaded' in stdout)
@mock_plugin_manager(plugins=[])
def test_should_display_no_plugins(self):
    with redirect_stdout(io.StringIO()) as temp_stdout:
        plugins_command.dump_plugins(self.parser.parse_args(['plugins', '--output=json']))
        stdout = temp_stdout.getvalue()
    assert ('No plugins loaded' in stdout)