'Join for a simple component'

def testGetJoinSimpleComponent(self):

    resource = current.s3db.resource('pr_person')
    component = resource.components['identity']
    rtable = resource.table
    ctable = component.table
    expected = ((ctable.person_id == rtable.id) & (ctable.deleted != True))
    join = component.get_join()
    self.assertEqual(str(join), str(expected))
