

def testChainAfterEmbed(self):
    target = Builder('/item/2')
    obj = Builder('/item/1').embed('next', target).set_property('chained', True).as_object()
    doc = Document.from_object(obj, base_uri='http://localhost/')
    self.assertTrue(obj.properties['chained'])

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py ChainingBuilderTests.testChainAfterEmbed/VarMisuse@59/86 `doc`->`obj`