示例#1
0
    def test94(self):
        pa = CPDTable()

        for i in range(5,13):
            pa.update(i, appointment_id=str(i+200))

        where = pa.singlewhere(appointment_id='200')
        rows = pa.selectall(whereStr=where)
        for row in rows:
            print row
示例#2
0
 def test91(self):
     ''' Selete all data '''
     pa = CPDTable()
     rows = pa.selectall()
     n = len(rows)
     assert n == 8, "Need to have 8 rows "