| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from behave import when, then |
||
| 2 | |||
| 3 | |||
| 4 | @when(u'I go to the home page') |
||
| 5 | def step_impl(context): |
||
| 6 | context.get_browser().visit(context.base_url) |
||
| 7 | |||
| 8 | |||
| 9 | @then(u'I should see "{text}" in the title') |
||
| 10 | def step_impl(context, text): |
||
| 11 | browser = context.get_browser() |
||
| 12 | |||
| 13 | assert text in browser.title |
||
| 14 |