Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/djangoapps/terrain/steps.py   MHST2013-14(Download)
def i_log_in(step):
    world.log_in('robot', 'test')
 
 
@step('I am a logged in user$')
def i_am_logged_in_user(step):
    world.create_user('robot', 'test')
    world.log_in('robot', 'test')
def i_am_logged_in(step):
    world.create_user('robot', 'test')
    world.log_in('robot', 'test')
    world.browser.visit(django_url('/'))
    # You should not see the login link

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/openended.py   MHST2013-14(Download)
def navigate_to_an_openended_question(step):
    world.register_by_course_id('MITx/3.091x/2012_Fall')
    world.log_in('robot@edx.org', 'test')
    problem = '/courses/MITx/3.091x/2012_Fall/courseware/Week_10/Polymer_Synthesis/'
    world.browser.visit(django_url(problem))
def navigate_to_an_openended_question_as_staff(step):
    world.register_by_course_id('MITx/3.091x/2012_Fall', True)
    world.log_in('robot@edx.org', 'test')
    problem = '/courses/MITx/3.091x/2012_Fall/courseware/Week_10/Polymer_Synthesis/'
    world.browser.visit(django_url(problem))

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/navigation.py   MHST2013-14(Download)
    CourseEnrollment.objects.get_or_create(user=u, course_id=course_id(world.scenario_dict['COURSE'].number))
 
    world.log_in('robot', 'test')
    chapter_name = (TEST_SECTION_NAME + "1").replace(" ", "_")
    section_name = (TEST_SUBSECTION_NAME + "1").replace(" ", "_")

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/common.py   MHST2013-14(Download)
    CourseEnrollment.objects.get_or_create(user=u, course_id=course_id(course))
 
    world.log_in('robot', 'test')