def testTypeOfReferenceNone(self):

        db = current.db

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

        # Test with None
        expr = FS("typeof_hierarchy_id").typeof(None)
        query = expr.query(resource)

        table = resource.table
        expected = set(uids[uid] for uid in ("HIERARCHY1-2",
                                             "HIERARCHY1-2-1",
                                             "HIERARCHY1-2-2",
                                             ))
        expected_query = (table.typeof_hierarchy_id == None)
        self.assertEquivalent(query, expected_query)

        # Test with list
        expr = FS("typeof_hierarchy_id").typeof([None])
        query = expr.query(resource)

        table = resource.table
        expected = set(uids[uid] for uid in ("HIERARCHY1-2",
                                             "HIERARCHY1-2-1",
                                             "HIERARCHY1-2-2",
                                             ))
        expected_query = (table.typeof_hierarchy_id == None)
        self.assertEquivalent(query, expected_query)

        # Test with multiple values
        expr = FS("typeof_hierarchy_id").typeof([None, uids["HIERARCHY1-2"]])
        query = expr.query(resource)

        table = resource.table
        expected = set(uids[uid] for uid in ("HIERARCHY1-2",
                                             "HIERARCHY1-2-1",
                                             "HIERARCHY1-2-2",
                                             ))
        expected_query = (table.typeof_hierarchy_id.belongs(expected)) | \
                         (table.typeof_hierarchy_id == None)
        self.assertEquivalent(query, expected_query)

    # -------------------------------------------------------------------------
Getting the dojo-base-path dependend on the profile and the version
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3hierarchy.py/S3TypeOfTests.testTypeOfReferenceNone--crossover with--dataset/ETHPy150Open klipstein/dojango/dojango/util/config.py/Config._get_dojo_url