def test_03_parse_and_retrievel_title(self): with open(OMEKA_COLLECTION, "r") as inp: self.o = OmekaXML(inp.read()) self.o.parse() # get title from the first item item = self.o.doc.find(om("item")) elmt = self.o._text_retrieval(item, "19", "61") self.assertTrue(elmt != None) self.assertTrue(elmt.text.startswith("Lloyd"))
def test_00b_om_namespacer(self): self.assertEquals("{http://omeka.org/schemas/omeka-xml/v5}elementType", om("elementType"))
def test_00a_om_namespacer(self): self.assertEquals("{http://omeka.org/schemas/omeka-xml/v5}item", om("item"))