import sst
import sst.actions


sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')

sst.actions.assert_title('The Page Title')
sst.actions.fails(sst.actions.assert_title, 'this is not the title')

sst.actions.assert_title_contains('The Page')
sst.actions.assert_title_contains('.*Pag[E|e]', regex=True)
sst.actions.fails(sst.actions.assert_title_contains, 'foobar')

import sst
import sst.actions


sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')

sst.actions.assert_title('The Page Title')
sst.actions.fails(sst.actions.assert_title, 'this is not the title')

sst.actions.assert_title_contains('The Page')
sst.actions.assert_title_contains('.*Pag[E|e]', regex=True)
sst.actions.fails(sst.actions.assert_title_contains, 'foobar')
