示例#1
0
    def test_index(self):
        t = Table()
        t.append(Record(a=1, b=4, c=7))
        t.append(Record(a=2, b=5, c=8))
        t.append(Record(a=3, b=6, c=9))

        t.index(Record(a=1, b=4, c=7)) == 0