def METHOD_NAME(self):
    parent = toga.Group("parent")
    child = toga.Group("child", parent=parent)
    self.assert_parent_and_root(parent, None, parent)
    self.assert_parent_and_root(child, parent, parent)