def testDeleteOnlyEmbedForRel(self):
        doc = self.make_doc("http://localhost/2")
        doc.embed('child', self.make_doc("http://localhost/2/1"))
        doc.embed('root', self.make_doc("http://localhost/"))

        target_doc = self.make_doc("http://localhost/2")
        target_doc.embed('root', self.make_doc("http://localhost/"))

        doc.delete_embedded("child")

        self.assertEquals(target_doc.as_object().get(self.EMBEDDED_KEY),
                          doc.as_object().get(self.EMBEDDED_KEY))
        self.assertFalse('child' in doc.embedded)
        self.assertTrue('root' in doc.embedded)
dataset/ETHPy150Open wharris/dougrain/test/test_document.py/DeleteEmbeddedTestsMixin.testDeleteOnlyEmbedForRel/original