

def testThirdEmbed(self):
    self.builder.embed('item', self.make_target('first'))
    self.builder.embed('item', self.make_target('second'))
    self.builder.embed('item', self.make_target('third'))
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    item_embeds = doc.embedded['item']
    names = [embedded.properties['name'] for embedded in item_embeds]
    self.assertSequenceEqual(names, ['first', 'second', 'third'])

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