def testTypeOfListReferenceNone(self):

        db = current.db

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

        # Test with None
        expr = FS("typeof_hierarchy_multi_id").typeof(None)
        query = expr.query(resource)
        table = resource.table
        expected_query = table.id.belongs(set())
        self.assertEquivalent(query, expected_query)

        # Test with list
        expr = FS("typeof_hierarchy_multi_id").typeof([None])
        query = expr.query(resource)
        #table = resource.table
        expected_query = table.id.belongs(set())
        self.assertEquivalent(query, expected_query)

        # Test with multiple values
        expr = FS("typeof_hierarchy_multi_id").typeof((None,
                                                       uids["HIERARCHY2-1"]))
        query = expr.query(resource)
        #table = resource.table
        expected = set(uids[uid] for uid in ("HIERARCHY2-1",
                                             "HIERARCHY2-1-1",
                                             "HIERARCHY2-1-2",
                                             ))
        found = self.inspect_multi_query(query,
                                         field = table.typeof_hierarchy_multi_id,
                                         conjunction = db._adapter.OR,
                                         op = db._adapter.CONTAINS)

        self.assertEqual(found, expected)

    # -------------------------------------------------------------------------
Test resolution of __typeof queries, for list:reference,
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3hierarchy.py/S3TypeOfTests.testTypeOfListReferenceNone