Esempio n. 1
0
def blank_description(step):
    world.assert_text_not_present('Description')
Esempio n. 2
0
def blank_description(step):
    world.assert_text_not_present('Description')
Esempio n. 3
0
def no_stories_list(step):
    world.assert_text_not_present("Stories")
Esempio n. 4
0
def text_not_present(step, text):
    world.assert_text_not_present(text)
Esempio n. 5
0
def no_stories_list(step):
    world.assert_text_not_present("Stories")
Esempio n. 6
0
def text_not_present(step, text):
    world.assert_text_not_present(text)
Esempio n. 7
0
def blank_published_date(step):
    world.assert_text_not_present('Date Published')
Esempio n. 8
0
def no_members(step):
    world.assert_text_not_present('Members')
def blank_published_date(step):
    world.assert_text_not_present('Date Published')
Esempio n. 10
0
def no_members(step):
    world.assert_text_not_present('Members')
Esempio n. 11
0
def no_stories_list(step):
    world.assert_text_not_present("Recent Stories")
    world.assert_text_not_present("Featured Stories")
    assert_equal(len(world.browser.find_by_css('.story-list')), 0)
Esempio n. 12
0
def no_contributors(step):
    world.assert_text_not_present("Members")
Esempio n. 13
0
def not_member(step, username, name):
    user = User.objects.get(username=username)
    world.browser.visit(django_url("/organizations/%s" % world.organization.organization_id))
    world.assert_text_not_present("Organization Contributors")
    world.assert_text_not_present(format_user_name(user))
Esempio n. 14
0
def no_contributors(step):
    world.assert_text_not_present('Members')
Esempio n. 15
0
def not_member(step, username, name):
    user = User.objects.get(username=username)
    world.browser.visit(
        django_url('/organizations/%s' % world.organization.organization_id))
    world.assert_text_not_present("Organization Contributors")
    world.assert_text_not_present(format_user_name(user))
Esempio n. 16
0
def no_stories_list(step):
    world.assert_text_not_present("Recent Stories")
    world.assert_text_not_present("Featured Stories")
    assert_equal(len(world.browser.find_by_css('.story-list')), 0)