'Helper to use the CMS\'s module system so we can access student-specific fields.'

def _bind_module(self, descriptor, user=None):

    if (user is None):
        user = self.user
    if (user not in self.session_data):
        self.session_data[user] = {}
    request = Mock(user=user, session=self.session_data[user])
    _load_preview_module(request, descriptor)
