'Scenario: We should get a HTTP 404 for an unreachable bookmark.
Given that I am a registered user
And I have bookmarked 2 units
And I delete a bookmarked unit
And I visit my bookmarks page
Then I should see a bookmarked list
When I click on the deleted bookmark
Then I should navigated to 404 page'

def test_unreachable_bookmark(self):

    self.setup_test(num_chapters=1)
    self.bookmark_units(1)
    self._delete_section(0)
    self.bookmarks_page.visit()
    self._verify_pagination_info(bookmark_count_on_current_page=1, header_text='Showing    1    out    of    1    total', previous_button_enabled=False, next_button_enabled=False, current_page_number=1, total_pages=1)
    self.bookmarks_page.click_bookmarked_block(0)
    self.assertTrue(is_404_page(self.browser))
