def created_today(step): created = datetime.strptime(world.browser.find_by_css('time.created').value, '%B %d, %Y') world.assert_today(created)
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)
def created_today(step): created = datetime.strptime( world.browser.find_by_css('time.created').value, '%B %d, %Y') world.assert_today(created)
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)
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)