def test_definition_to_message(self): """Test definitions to message renderer.""" message = m.Message() table_of_contents = m.Message() definitions_help.definition_to_message( self.test_definition, message=message, table_of_contents=table_of_contents) help_text = message.to_text() expected_result = get_control_text( 'test-definition-to-message-response.txt') for line in expected_result: line = line.replace('\n', '') self.assertIn(line, help_text)
def test_definition_to_message(self): """Test definitions to message renderer.""" message = m.Message() table_of_contents = m.Message() definitions_help.definition_to_message( self.test_definition, message=message, table_of_contents=table_of_contents ) help_text = message.to_text() expected_result = get_control_text( 'test-definition-to-message-response.txt') for line in expected_result: line = line.replace('\n', '') self.assertIn(line, help_text)
def test_definition_to_message(self): """Test definitions to message renderer.""" help_text = definitions_help.definition_to_message( self.test_definition).to_text() expected_result = get_control_text( 'test-definition-to-message-response.txt') for line in expected_result: line = line.replace('\n', '') self.assertIn(line, help_text)