def METHOD_NAME(self):
    """Test if widgets are properly set and in the correct order."""
    p = self.Kind()
    # 0 widgets
    p.set_widgets([])
    paned = p.get_paned()
    self.assertIsNotNone(paned)
    self.assertIsNone(paned.get_child1())
    self.assertIsNone(paned.get_child2())
    # 1 widget
    sw = Gtk.ScrolledWindow()
    p.set_widgets([sw])
    paned = p.get_paned()
    children = [paned.get_child1(), paned.get_child2()]
    self.assertIn(sw, children)
    # 2 widgets
    sws = [Gtk.ScrolledWindow() for _ in range(2)]
    p.set_widgets(sws)
    paned = p.get_paned()
    self.assertIs(sws[0], paned.get_child1())
    self.assertIs(sws[1], paned.get_child2())
    # 3 wigets
    sws = [Gtk.ScrolledWindow() for _ in range(3)]
    p.set_widgets(sws)
    root_paned = p.get_paned()
    self.assertIs(sws[0], root_paned.get_child1())
    sub_paned = root_paned.get_child2()
    self.assertIs(sws[1], sub_paned.get_child1())
    self.assertIs(sws[2], sub_paned.get_child2())