

def testAddSecondLink(self):
    self.add_link('item', '/items/1', name='first')
    doc.add_link('item', '/items/2', name='second')
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    item_links = doc.links['item']
    self.assertSequenceEqual([item_link.name for item_link in item_links], ['first', 'second'])

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py LinkBuilderTestsMixin.testAddSecondLink/VarMisuse@23/36 `self`->`doc`