'Load a citable url for a past changeset revision and verify that strings display.'

def test_0025_load_view_page_for_previous_revision(self):

    '\n                                We    are    at    step    5.\n                                Visit    the    following    url    and    check    for    appropriate    strings:    <tool    shed    base    url>/view/user1/filtering_0420/<revision    0>\n                                                Resulting    page    should    not    contain    change    set    revision    1,    but    should    contain    change    set    revision    0.\n                                '
    global first_changeset_hash
    repository = self.test_db_util.get_repository_by_name_and_owner(repository_name, common.test_user_1_name)
    test_user_1 = self.test_db_util.get_user(common.test_user_1_email)
    encoded_user_id = self.security.encode_id(test_user_1.id)
    encoded_repository_id = self.security.encode_id(repository.id)
    strings_displayed = ['/repository', 'view_repository', ('id=' + encoded_repository_id)]
    strings_displayed_in_iframe = ['user1', 'filtering_0420', 'Galaxy    filtering    tool    for    test    0420', first_changeset_hash]
    strings_displayed_in_iframe.append('Link    to    this    repository    revision:')
    strings_displayed_in_iframe.append(('%s/view/user1/filtering_0420/%s' % (self.url, first_changeset_hash)))
    strings_not_displayed_in_iframe = []
    self.load_citable_url(username='user1', repository_name='filtering_0420', changeset_revision=first_changeset_hash, encoded_user_id=encoded_user_id, encoded_repository_id=encoded_repository_id, strings_displayed=strings_displayed, strings_displayed_in_iframe=strings_displayed_in_iframe, strings_not_displayed_in_iframe=strings_not_displayed_in_iframe)
