@mock_plugin_manager(plugins=[TestPlugin])
def test_should_display_one_plugins_as_table(self):
    with redirect_stdout(io.StringIO()) as temp_stdout:
        plugins_command.dump_plugins(self.parser.parse_args(['plugins', '--output=table']))
        stdout = temp_stdout.getvalue()
    stdout = '\n'.join((line.rstrip(' ') for line in stdout.splitlines()))
    expected_output = textwrap.dedent('            name            | hooks\n            ================+===================================================\n            test-plugin-cli | tests.cli.commands.test_plugins_command.PluginHook\n            ')
    self.assertEqual(stdout, expected_output)
@mock_plugin_manager(plugins=[TestPlugin])
def test_should_display_one_plugins_as_table(self):
    with redirect_stdout(io.StringIO()) as temp_stdout:
        plugins_command.dump_plugins(self.parser.parse_args(['plugins', '--output=table']))
        stdout = temp_stdout.getvalue()
    stdout = '\n'.join((line.rstrip(' ') for line in stdout.splitlines()))
    expected_output = textwrap.dedent('            name            | hooks\n            ================+===================================================\n            test-plugin-cli | tests.cli.commands.test_plugins_command.PluginHook\n            ')
    self.assertEqual(stdout, expected_output)