Exemple #1
0
 def test_split_column_not_string(self):
     col = SplitColumn(display='test_{option}', options=['a', 'b'])
     self.assertEqual(col.get_data(1), [None, None, 1])
Exemple #2
0
 def test_split_column_not_string(self):
     col = SplitColumn(display='test_{option}', options=['a', 'b'])
     self.assertEqual(
         col.get_data(1),
         [None, None, 1]
     )
Exemple #3
0
 def test_split_column_header_format(self):
     col = SplitColumn(display='test_{option}', options=['a', 'b', 'c'])
     self.assertEqual(list(col.get_headers()),
                      ['test_a', 'test_b', 'test_c', 'test_extra'])
Exemple #4
0
 def test_split_column_header_format(self):
     col = SplitColumn(display='test_{option}', options=['a', 'b', 'c'])
     self.assertEqual(
         list(col.get_headers()),
         ['test_a', 'test_b', 'test_c', 'test_extra']
     )