def test_table_reverse(self): t = table.Table() self.assertRaises(NotImplementedError, t.reverse)
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)
def test_table_sort(self): t = table.Table() self.assertRaises(NotImplementedError, t.sort)
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'])