'Resolution of a selector with a master wildcard'

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

    assertEqual = self.assertEqual
    assertNotEqual = self.assertNotEqual
    assertFalse = self.assertFalse
    resource = current.s3db.resource('org_organisation')
    selector = '~.name'
    f = S3ResourceField(resource, selector)
    assertNotEqual(f, None)
    assertEqual(f.selector, selector)
    assertEqual(str(f.field), 'org_organisation.name')
    assertEqual(str(f.tname), 'org_organisation')
    assertEqual(str(f.fname), 'name')
    assertEqual(str(f.colname), 'org_organisation.name')
    assertEqual(f.join, Storage())
    assertEqual(f.left, Storage())
    assertFalse(f.distinct)
