def test_row_five(self):
     rows = raw_rows[5].split(",")
     marc_map = marc2skos.get_marc_map(rows)
     self.assert_(not marc_map['indicator-flag'])
     self.assertEquals(marc_map['marc-tag'],
                       "876")
     self.assertEquals(marc_map['field-name'],
                       "876")
     self.assertEquals(marc_map['subfield'],
                       'b')
     self.assertEquals(marc_map['position'],
                       'n/a')
     self.assertEquals(marc_map['data element'],
                       "Invalid or cancelled internal")
     self.assert_(len(marc_map['additional-info']) < 1)
     self.assertEquals(marc_map['entity-role'],
                       'item identifier')
 def test_row_five(self):
     rows = raw_rows[4].split(",")
     marc_map = marc2skos.get_marc_map(rows)
     self.assert_(not marc_map['indicator-flag'])
     self.assertEquals(marc_map['marc-tag'],
                       "811")
     self.assertEquals(marc_map['field-name'],
                       "811")
     self.assertEquals(marc_map['subfield'],
                       'e')
     self.assertEquals(marc_map['position'],
                       'n/a')
     self.assertEquals(marc_map['data element'],
                       "Subordinate unit")
     self.assert_(len(marc_map['additional-info']) < 1)
     self.assertEquals(marc_map['entity-role'],
                       'name of corporate body')
 def test_row_four(self):
     rows = raw_rows[3].split(",")
     marc_map = marc2skos.get_marc_map(rows)
     self.assert_(marc_map['indicator-flag'])
     self.assertEquals(marc_map['marc-tag'],
                       "100")
     self.assertEquals(marc_map['field-name'],
                       "100")
     self.assertEquals(marc_map['subfield'],
                       '4')
     self.assertEquals(marc_map['position'],
                       'n/a')
     self.assertEquals(marc_map['data element'],
                       "Relator code")
     self.assert_(len(marc_map['additional-info']) < 1)
     self.assertEquals(marc_map['entity-role'],
                       'relationship')
 def test_row_three(self):
     rows = raw_rows[2].split(",")
     marc_map = marc2skos.get_marc_map(rows)
     self.assert_(marc_map['indicator-flag'])
     self.assertEquals(marc_map['marc-tag'],
                       "046")
     self.assertEquals(marc_map['field-name'],
                       "046")
     self.assertEquals(marc_map['subfield'],
                       'm')
     self.assertEquals(marc_map['position'],
                       'n/a')
     self.assertEquals(marc_map['data element'],
                       "Beginning of date valid")
     self.assert_(len(marc_map['additional-info']) < 1)
     self.assertEquals(marc_map['entity-role'],
                       'date of publication distribution')
 def test_row_two(self):
     rows = raw_rows[1].split(",")
     marc_map = marc2skos.get_marc_map(rows)
     self.assert_(not marc_map['indicator-flag'])
     self.assertEquals(marc_map['marc-tag'],
                       "505")
     self.assertEquals(marc_map['field-name'],
                       "505")
     self.assertEquals(marc_map['subfield'],
                       'g')
     self.assertEquals(marc_map['position'],
                       'n/a')
     self.assertEquals(marc_map['data element'],
                       "Miscellaneous information")
     self.assert_(len(marc_map['additional-info']) < 1)
     self.assertEquals(marc_map['entity-role'],
                       'summarization of content')        
 def test_row_one(self):
     rows = raw_rows[0].split(",")
     marc_map = marc2skos.get_marc_map(rows)
     self.assert_(not marc_map['indicator-flag'])
     self.assertEquals(marc_map['marc-tag'],
                       "007Proj")
     self.assertEquals(marc_map['field-name'],
                       "007Proj")
     self.assertEquals(marc_map['subfield'],
                       'n/a')
     self.assertEquals(marc_map['position'],
                       '05')
     self.assertEquals(marc_map['data element'],
                       "Sound on medium or separate")
     self.assert_(len(marc_map['additional-info']) < 1)
     self.assertEquals(marc_map['entity-role'],
                       'sound characteristic')