

def testAddWrappedLink(self):
    self.add_link('item', '/items/1', wrap=True)
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    self.assertIn('item', doc.links)
    item_link = doc.links['item']
    self.assertEqual(item_link.url(), doc.link('/items/1').url())

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py LinkBuilderTestsMixin.testAddWrappedLink/original