Beispiel #1
0
    def test34(self):
        pa = GPTable()

        for i in range(5,13):
            pa.update(i, home_phone='01444-241048')

        where = pa.singlewhere(work_phone='01444-241048')
        rows = pa.selectall(whereStr=where)
        for row in rows:
            print row
Beispiel #2
0
 def test31(self):
     ''' Selete all data '''
     pa = GPTable()
     rows = pa.selectall()
     n = len(rows)
     assert n == 35, "Need to have 35 rows "
Beispiel #3
0
 def test39(self):
     ''' Delete all data '''
     pa = GPTable()
     pa.deleteall()
     rows = pa.selectall()
     assert len(rows) == 0, "Table not empty"