def test_get_columns_concat_single_column(self): columns = ["example_column"] self.assertEqual(columns[0], PayloadBuilder.get_columns_concat(columns=columns)[0]) self.assertEqual('\t', PayloadBuilder.get_columns_concat(columns=columns)[1])
def test_get_columns_concat_multiple_columns(self): columns = ["example_column1", "example_column2", "example_column3"] self.assertEqual( "concat(example_column1,char(9),example_column2,char(9),example_column3)", PayloadBuilder.get_columns_concat(columns=columns)[0]) self.assertEqual('\t', PayloadBuilder.get_columns_concat(columns=columns)[1])