'Test archiving of a record'

def testArchiveSimple(self):

    assertEqual = self.assertEqual
    assertTrue = self.assertTrue
    s3db = current.s3db
    s3db.clear_config('del_master', 'super_entity')
    master_id = self.master_id
    resource = s3db.resource('del_master', id=master_id)
    success = resource.delete()
    assertEqual(success, 1)
    assertEqual(resource.error, None)
    table = s3db.del_master
    record = table[master_id]
    assertTrue(record.deleted)
    assertEqual(self.master_deleted, master_id)
    assertEqual(self.super_deleted, 0)
    assertEqual(self.component_deleted, 0)
