2
# test for loading local files by file:// rather than http://
6
from sst.actions import *
9
static_file = os.path.join(''.join(os.path.split(__file__)[:-1]), 'static.html')
12
go_to('file:////%s' % static_file)
13
assert_title('The Static Page')
14
assert_element(tag='h1', text='Hello World')
17
set_base_url('file:////')
19
assert_title('The Static Page')
20
assert_element(tag='h1', text='Hello World')