Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
    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)