

def testEmbedAlsoAddsLinkWithDraft5(self):
    embedded.builder = Builder(self.uri, draft=drafts.DRAFT_5)
    self.builder.embed('item', self.make_target('first'))
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    item_links = doc.links['item']
    urls = [link.url() for link in item_links]
    item_embeds = doc.embedded['item']
    expected_urls = [embedded.url() for embedded in item_embeds]
    self.assertSequenceEqual(urls, expected_urls)

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py EmbedBuilderTests.testEmbedAlsoAddsLinkWithDraft5/VarMisuse@10/19 `self`->`embedded`