Ejemplo n.º 1
0
    def list_browse_listing_works(self):
        """
        Make sure we can pull the links for items falling under a
        particular list browse from IIIF.
        """
        assert DisplayBrowse.get_lbrowse_items(
            collection1,
            list_browse1,

        )
Ejemplo n.º 2
0
 def list_browse_404(self):
     """
     If there's a 404 error connecting to IIIF while getting the list
     browse JSON, the page should display a 'maybe you typed the
     wrong URL' message.
     """
     assert not DisplayBrowse.get_lbrowse_items(
         collection1,
         list_browse1,
         modify=Testing.change_status_code(404)
     )
Ejemplo n.º 3
0
 def iiif_is_down_list_browse_elegant_fail(self):
     """
     If the IIIF server is down, the code to get the links for the list
     browse listing should return an empty string.  This will lead
     to "are you sure you typed the right URL" in the page.
     """
     assert not DisplayBrowse.get_lbrowse_items(
         collection1,
         list_browse1,
         modify=Testing.bring_website_down
     )