

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

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py EmbedBuilderTests.testEmbedDoesNotAddLinkWithDraft3/original