

def testFirstEmbedNotWrapped(self):
    target = self.make_target('first')
    self.builder.embed('item', target, wrap=False)
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    self.assertIsInstance(target.builder.as_object()['_embedded']['item'], dict)
    self.assertEquals(doc.embedded['item'].properties['name'], 'first')

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py EmbedBuilderTests.testFirstEmbedNotWrapped/VarMisuse@57/77 `self`->`target`