コード例 #1
0
def i_should_see_that_the_path_is(step, path):
    assert world.url_equals(path)
コード例 #2
0
def i_am_on_the_dashboard_page(step):
    assert world.is_css_present('section.courses')
    assert world.url_equals('/dashboard')
コード例 #3
0
ファイル: steps.py プロジェクト: CraftAcademy/edx-platform
def i_should_see_that_the_path_is(step, path):
    if 'COURSE' in world.scenario_dict:
        path = path.format(world.scenario_dict['COURSE'].id)
    assert world.url_equals(path), (
        "path should be {!r} but is {!r}".format(path, world.browser.url)
    )
コード例 #4
0
def i_should_see_that_the_path_is(step, path):
    if 'COURSE' in world.scenario_dict:
        path = path.format(world.scenario_dict['COURSE'].id)
    assert world.url_equals(path), (
        "path should be {!r} but is {!r}".format(path, world.browser.url)
    )
コード例 #5
0
ファイル: steps.py プロジェクト: LukeLu1263/edx-platform
def i_should_see_that_the_path_is(step, path):
    assert world.url_equals(path)
コード例 #6
0
ファイル: steps.py プロジェクト: LearnEra/LearnEraPlaftform
def i_should_see_that_the_path_is(step, path):
    assert world.url_equals(path), ("path should be {!r} but is {!r}".format(
        path, world.browser.url))
コード例 #7
0
ファイル: steps.py プロジェクト: AdityaKashyap/edx-platform
def i_should_see_that_the_path_is(step, path):
    assert world.url_equals(path), (
        "path should be {!r} but is {!r}".format(path, world.browser.url)
    )