'Load a citable url with an invalid changeset revision specified.'

def test_0030_load_sharable_url_with_invalid_changeset_revision(self):

    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)
    invalid_changeset_hash = 'invalid'
    strings_displayed = ['/repository', 'view_repository', ('id=' + encoded_repository_id)]
    strings_displayed.extend(['The+change+log', 'does+not+include+revision', invalid_changeset_hash, 'status=error'])
    strings_displayed_in_iframe = ['user1', 'filtering_0420', 'Galaxy    filtering    tool    for    test    0420']
    strings_displayed_in_iframe.append('Link    to    this    repository    revision:')
    strings_displayed_in_iframe.append(('%s/view/user1/filtering_0420/%s' % (self.url, invalid_changeset_hash)))
    strings_not_displayed_in_iframe = []
    self.load_citable_url(username='user1', repository_name='filtering_0420', changeset_revision=invalid_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)
