def test_single_position(self):
     concept = etree.Element('{%s}Concept' % ns.SKOS)
     marc2skos.create_fixed(concept,'00')
     label = concept.find('{%s}prefLabel' % ns.SKOS)
     self.assertEquals(label.text,
                       'fixed')
     self.assertEquals(label.get('{%s}lang' % ns.XML),
                       'en')
     collection = concept.find('{%s}OrderedCollection' % ns.SKOS)
     member = collection.find('{%s}member' % ns.SKOS)
     self.assertEquals(member.text,'00')
 def test_multiple(self):
     concept = etree.Element('{%s}Concept' % ns.SKOS)
     marc2skos.create_fixed(concept,'01-04')
     label = concept.find('{%s}prefLabel' % ns.SKOS)
     self.assertEquals(label.text,
                       'fixed')
     self.assertEquals(label.get('{%s}lang' % ns.XML),
                       'en')
     collection = concept.find('{%s}OrderedCollection' % ns.SKOS)
     members = collection.findall('{%s}member' % ns.SKOS)
     self.assertEquals(len(members),
                       3)
     self.assertEquals(members[2].text,
                       '3')
 def test_nolength(self):
     concept = etree.Element('{%s}Concept' % ns.SKOS)
     marc2skos.create_fixed(concept,'')
     self.assertEquals(len(concept.getchildren()),
                       0)