def test_get_parent(self): root = Context('root') child = Context('child', root) self.assert_(child.get_parent() is root) self.assert_(root.get_parent() is None)