def test_parent_with_slash(dir_layout, quteproc):
 quteproc.open_url((dir_layout.file_url() + '/'))
 page = parse(quteproc)
 assert (page.parent == dir_layout.base_path())

def test_parent_with_slash ( dir_layout , quteproc ) : quteproc . open_url ( ( dir_layout . file_url ( ) + '/' ) ) page = parse ( quteproc ) assert ( page . parent == dir_layout . base_path ( ) )
test the parent link with a url that has a trailing slash .