'Create the testing runtime.'

def create_runtime(self):

    def mock_get_real_user(_anon_id):
        'Just    returns    the    test    user'
        return self.user
    return LmsModuleSystem(static_url='/static', track_function=Mock(), get_module=Mock(), render_template=Mock(), replace_urls=str, course_id=self.course_id, get_real_user=mock_get_real_user, descriptor_runtime=Mock())
