예제 #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])
예제 #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]
     )
예제 #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'])
예제 #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']
     )