Exemple #1
0
    def test_nested_tables(self, input, valid_nested):

        actual_result = func_utils.multi_line_row_table(
            input, group_by_column_index=1)

        self.assertEqual(['**', 'ID', 'Name', 'Status'],
                         actual_result['headers'])

        self.assertEqual(2, len(actual_result['values']))
        self.assertEqual(valid_nested, actual_result['values'][0][3])
    def test_nested_tables(self, input, valid_nested):

        actual_result = func_utils.multi_line_row_table(
            input, group_by_column_index=1)

        self.assertEqual(['**', 'ID', 'Name', 'Status'],
                         actual_result['headers'])

        self.assertEqual(2, len(actual_result['values']))
        self.assertEqual(valid_nested, actual_result['values'][0][3])
Exemple #3
0
    def test_multi_line_row_table_shifted_id_column(self):
        input = self.OUTPUT_LINES_COMPLICATED_MULTI_ROW_WITH_SHIFTED_ID
        valid_values = [['**', '11', 'foo', 'BUILD'],
                        ['', '21', 'bar', ['ERROR', 'ERROR2', 'ERROR3']],
                        ['', '', '',
                         ''], ['**', '31', ['bee', 'bee2'], 'None'],
                        ['', '', '', '']]

        actual_result = func_utils.multi_line_row_table(
            input, group_by_column_index=1)

        self.assertEqual(['**', 'ID', 'Name', 'Status'],
                         actual_result['headers'])
        self.assertEqual(valid_values, actual_result['values'])
    def test_multi_line_row_table_shifted_id_column(self):
        input = self.OUTPUT_LINES_COMPLICATED_MULTI_ROW_WITH_SHIFTED_ID
        valid_values = [
            ['**', '11', 'foo', 'BUILD'],
            ['', '21', 'bar', ['ERROR', 'ERROR2', 'ERROR3']],
            ['', '', '', ''],
            ['**', '31', ['bee', 'bee2'], 'None'],
            ['', '', '', '']
        ]

        actual_result = func_utils.multi_line_row_table(
            input, group_by_column_index=1)

        self.assertEqual(['**', 'ID', 'Name', 'Status'],
                         actual_result['headers'])
        self.assertEqual(valid_values, actual_result['values'])
    def test_details(self, input, valid_values):
        actual_result = func_utils.multi_line_row_table(input)

        self.assertEqual(['Property', 'Value'], actual_result['headers'])
        self.assertEqual(valid_values, actual_result['values'])
    def test_multi_line_row_table(self, input, valid_values):

        actual_result = func_utils.multi_line_row_table(input)

        self.assertEqual(['ID', 'Name', 'Status'], actual_result['headers'])
        self.assertEqual(valid_values, actual_result['values'])
Exemple #7
0
    def test_details(self, input, valid_values):
        actual_result = func_utils.multi_line_row_table(input)

        self.assertEqual(['Property', 'Value'], actual_result['headers'])
        self.assertEqual(valid_values, actual_result['values'])
Exemple #8
0
    def test_multi_line_row_table(self, input, valid_values):

        actual_result = func_utils.multi_line_row_table(input)

        self.assertEqual(['ID', 'Name', 'Status'], actual_result['headers'])
        self.assertEqual(valid_values, actual_result['values'])