

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

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