'Resolution of a selector for a field in master table'

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

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