Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/webapp/features/index.py
blob: b7e2a72c9ca2882a5e2948f6f441be96efd952ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from lettuce import step, world
from nose.tools import assert_equals
from lettuce.django import django_url


@step(r'I access the url "(.*)"')
def access_url(step, url):
    url = django_url(url)
    world.browser.visit(url)


@step(r'I should see "(.*)" as title')
def then_i_should_see_the_title_group1(step, title):
    assert_equals(world.browser.title, title)