

def testAddCurieDraft4(self):
    self.builder = Builder(self.uri, draft=drafts.DRAFT_4)
    self.builder.add_curie('rel', '/rels/{rel}')
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost', draft=drafts.DRAFT_4)
    doc.assertEqual(doc.expand_curie('rel:spam'), 'http://localhost/rels/spam')
    curies = self.builder.as_object()['_links']['curies']
    self.assertIsInstance(curies, list)

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py CurieBuilderTests.testAddCurieDraft4/VarMisuse@63/92 `self`->`doc`