Beispiel #1
0
def created_today(step):
    created = datetime.strptime(world.browser.find_by_css('time.created').value,
        '%B %d, %Y')
    world.assert_today(created)
Beispiel #2
0
def last_edited_today(step):
    last_edited = datetime.strptime(world.browser.find_by_css('time.last-edited').first.value,
        '%B %d, %Y')
    world.assert_today(last_edited)
Beispiel #3
0
def created_today(step):
    created = datetime.strptime(
        world.browser.find_by_css('time.created').value, '%B %d, %Y')
    world.assert_today(created)
Beispiel #4
0
def last_edited_today(step):
    last_edited = datetime.strptime(
        world.browser.find_by_css('time.last-edited').first.value, '%B %d, %Y')
    world.assert_today(last_edited)
Beispiel #5
0
def published_today(step):
    published = datetime.strptime(world.browser.find_by_css('time.published').first.value,
        '%B %d, %Y')
    world.assert_today(published)
def project_created_today(step, name):
    project = Project.objects.get(projecttranslation__name=name)
    world.assert_today(project.created)
Beispiel #7
0
def project_created_today(step, name):
    project = Project.objects.get(projecttranslation__name=name)
    world.assert_today(project.created)