def testReleasedNestedMessages(self, message_module):
    """A case that lead to a segfault when a message detached from its parent
    container has itself a child container.
    """
    m = message_module.NestedTestAllTypes()
    m = m.repeated_child.add()
    m = m.child
    m = m.repeated_child.add()
    self.assertEqual(m.payload.optional_int32, 0)
A case that lead to a segfault when a message detached from its parent
    container has itself a child container.
    
deps/protobuf/python/google/protobuf/internal/message_test.py