コード例 #1
0
 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"))
コード例 #2
0
 def test_00b_om_namespacer(self):
   self.assertEquals("{http://omeka.org/schemas/omeka-xml/v5}elementType", om("elementType"))
コード例 #3
0
 def test_00a_om_namespacer(self):
   self.assertEquals("{http://omeka.org/schemas/omeka-xml/v5}item", om("item"))