'Test has_foreign_key'

def testHasForeignKey(self):

    ptable = current.s3db.pr_person
    self.assertFalse(s3_has_foreign_key(ptable.first_name))
    self.assertTrue(s3_has_foreign_key(ptable.pe_id))
    htable = current.s3db.hrm_human_resource
    self.assertFalse(s3_has_foreign_key(htable.start_date))
    self.assertTrue(s3_has_foreign_key(htable.person_id))
