def test_check_integrity_2(self): text = """_A _B a b c d e f""" tt = TagTable( free = None, tagnames = [], tagvalues = [], verbosity = 2) pos = tt.parse( text = text, pos = 0) self.assertEqual(pos,len(text)) self.assertEqual(tt.getRowCount(), 3) self.assertEqual(tt.getColCount(), 2)
def test_GetValueListIntByColumn(self): text = """_A 1 2 . 3 4 5""" tt = TagTable( free = None, tagnames = [], tagvalues = [], verbosity = 2) pos = tt.parse( text = text, pos = 0) self.assertEqual(pos,len(text)) self.assertEqual(tt.getRowCount(), 6) self.assertEqual(tt.getColCount(), 1) nTdebug("column %s: %s" % ( "_A", tt.getIntListByColumnName("_A") )) text = """_A 1.0 2.0 . 3.0 4 5.0""" tt = TagTable( free = None, tagnames = [], tagvalues = [], verbosity = 2) pos = tt.parse( text = text, pos = 0) self.assertEqual(pos,len(text)) nTdebug("column %s: %s" % ( "_A", tt.getFloatListByColumnName("_A") ))