

def testAddSecondCurie(self):
    self.builder.add_curie('rel', '/rels/{rel}')
    self.builder.add_curie('admin', '/rels/admin/{rel}')
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    self.assertEqual(doc.expand_curie('rel:spam'), 'http://localhost/rels/spam')
    self.assertEqual(doc.expand_curie('admin:eggs'), 'http://localhost/rels/admin/eggs')

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py CurieBuilderTests.testAddSecondCurie/original