Exemplo n.º 1
0
    def test_format_channel_output_not_found_OneMQSC(self):
        """Test for `format_channel_output` function for not found `One MQSC` case."""
        input_data = '''\
{0}
AMQ8417: Display Channel Status details.
{1}
One command read.
No commands have a syntax error.
All valid MQSC commands were processed.
'''.format(self.input_header,
           self.input_temp[0])
        check_data = []
        self.assertEqual(
            check_data,
            format_channel_output(data_to_format=input_data))
Exemplo n.º 2
0
    def test_format_channel_output_not_found_AMQ84_in_first_entry(self):
        """Test for `format_channel_output` function for not found `AMQ84` in first entry case."""
        input_data = '''\
{0}
AMQ85: Display Channel Status details.
{1}
AMQ8417: Display Channel Status details.
{2}
One MQSC command read.\nNo commands have a syntax error.
All valid MQSC commands were processed.
'''.format(self.input_header,
           self.input_temp[0],
           self.input_temp[1])
        check_data = [self.check_data_temp[1]]
        self.assertEqual(
            check_data,
            format_channel_output(data_to_format=input_data))