def testTypeOfReferenceMultiple(self):

        db = current.db

        uids = self.uids
        resource = current.s3db.resource("typeof_hierarchy_reference")

        # Test with field in referencing table
        expr = FS("typeof_hierarchy_id").typeof((uids["HIERARCHY1-2"],
                                                 uids["HIERARCHY2-1"],
                                               ))
        query = expr.query(resource)

        table = resource.table
        expected = set(uids[uid] for uid in ("HIERARCHY1-2",
                                             "HIERARCHY1-2-1",
                                             "HIERARCHY1-2-2",
                                             "HIERARCHY2-1",
                                             "HIERARCHY2-1-1",
                                             "HIERARCHY2-1-2",
                                             ))
        expected_query = table.typeof_hierarchy_id.belongs(expected)

        self.assertEquivalent(query, expected_query)

    # -------------------------------------------------------------------------
Log on to this account.
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3hierarchy.py/S3TypeOfTests.testTypeOfReferenceMultiple--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/im/basesupport.py/AbstractAccount.logOn