@unittest.skipIf(not current.deployment_settings.has_module("org"), "org module disabled")
    def testResolveSelectorWithFilteredComponent(self):

        assertEqual = self.assertEqual

        s3db = current.s3db

        # Define a filtered component
        s3db.add_components("org_organisation",
                            org_office = {"name": "test",
                                          "joinby": "organisation_id",
                                          "filterby": "office_type_id",
                                          "filterfor": 5,
                                         },
                           )

        # Define the resource
        resource = s3db.resource("org_organisation")

        # Make sure an S3ResourceField of the component is using the
        # correct table alias (critical for data extraction from Rows)
        rfield = S3ResourceField(resource, "test.name")
        assertEqual(rfield.tname, "org_test_office")
        assertEqual(rfield.colname, "org_test_office.name")

        # Remove the component hook
        del current.model.components["org_organisation"]["test"]

    # -------------------------------------------------------------------------
called by conditional actions
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3resource.py/ResourceFilteredComponentTests.testResolveSelectorWithFilteredComponent--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/base/logging.py/Log.logSequence