Exemple #1
0
 def test_table_reverse(self):
     t = table.Table()
     self.assertRaises(NotImplementedError, t.reverse)
Exemple #2
0
 def test_table_append(self):
     c = table.Column(0, u'test', [u'test', u'column', u''])
     t = table.Table()
     t.append(c)
     self.assertEqual(len(t), 1)
     self.assertEqual(t[0], c)
Exemple #3
0
 def test_table_sort(self):
     t = table.Table()
     self.assertRaises(NotImplementedError, t.sort)
Exemple #4
0
 def test_table_row(self):
     c = table.Column(0, u'test', [u'test', u'column', u''])
     c2 = table.Column(0, u'test', [u'test', u'column', u''])
     c3 = table.Column(0, u'test', [u'test', u'column', u''])
     t = table.Table([c, c2, c3])
     self.assertEqual(t.row(1), [u'column', u'column', u'column'])