'Test selecting all records'

def testSelectAll(self):

    s3db = current.s3db
    assertTrue = self.assertTrue
    assertEqual = self.assertEqual
    numitems = len(self.test_data)
    resource = s3db.resource('select_master')
    data = resource.select(['name', 'status'])
    assertEqual(len(data.rows), numitems)
    data = resource.select(['name', 'status'], count=True)
    assertEqual(len(data.rows), numitems)
    assertEqual(data.numrows, numitems)
    data = resource.select(['id', 'name', 'status'], getids=True)
    rows = data.rows
    ids = data.ids
    assertEqual(len(rows), numitems)
    assertEqual(len(ids), numitems)
    assertTrue(all(((row['select_master.id'] in ids) for row in rows)))
