def test_suffix(self): self.assertEquals(marc2skos.normalize_role('role of expression*'), 'role of expression') self.assertEquals(marc2skos.normalize_role('form of work+'), 'form of work')
def test_distribution(self): self.assertEquals(marc2skos.normalize_role("Date of publication/distrib."), 'date of publication distribution')
def test_lower(self): self.assertEquals(marc2skos.normalize_role("Relator"), "relator")
def test_brackets(self): self.assertEquals(marc2skos.normalize_role("[Relationship]"), 'relationship')