示例#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']
     )