def testGetLeftJoinSimpleComponent(self):

        assertEqual = self.assertEqual
        assertTrue = self.assertTrue

        resource = current.s3db.resource("pr_person")
        component = resource.components["identity"]

        rtable = resource.table
        ctable = component.table
        expected = ctable.on((ctable.person_id == rtable.id) &
                             (ctable.deleted != True))

        ljoin = component.get_left_join()
        assertTrue(isinstance(ljoin, list))
        assertEqual(len(ljoin), 1)
        assertEqual(str(ljoin[0]), str(expected))

    # -------------------------------------------------------------------------
Decorator that will schedule the call of the function for the next
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/ComponentLeftJoinConstructionTests.testGetLeftJoinSimpleComponent--crossover with--dataset/ETHPy150Open kivy/kivy/kivy/clock.py/mainthread