def test_010_plugin_help(self):
    'Should show plugin help texts from docstring or configuration'
    caller = self.get_caller([ConfigurationPlugin])
    with unittest.mock.patch('sys.stdout', new=io.StringIO()) as stdout:
        with self.assertRaises(SystemExit):
            caller('--help')
        stdout.seek(0)
        output = stdout.read()
    print(output)
    self.assertRegex(output, 'This is the documentation string for the ConfigurationPlugin')
    self.assertRegex(output, 'This is the documentation for the required_choice task')
    self.assertRegex(output, 'This is the documentation for the one_line_doc_string task')
    self.assertRegex(output, 'This is the documentation for the parameter_help task')
    self.assertRegex(output, 'This is the documentation for the multi_line_doc_string task')
    self.assertNotRegex(output, 'This is the long description, for example')
Should show plugin help texts from docstring or configuration
def test_010_plugin_help(self):
    
    caller = self.get_caller([ConfigurationPlugin])
    with unittest.mock.patch('sys.stdout', new=io.StringIO()) as stdout:
        with self.assertRaises(SystemExit):
            caller('--help')
        stdout.seek(0)
        output = stdout.read()
    print(output)
    self.assertRegex(output, 'This is the documentation string for the ConfigurationPlugin')
    self.assertRegex(output, 'This is the documentation for the required_choice task')
    self.assertRegex(output, 'This is the documentation for the one_line_doc_string task')
    self.assertRegex(output, 'This is the documentation for the parameter_help task')
    self.assertRegex(output, 'This is the documentation for the multi_line_doc_string task')
    self.assertNotRegex(output, 'This is the long description, for example')