def METHOD_NAME(self):
    w = Gtk.Window()
    l = Gtk.Label()
    self.failUnlessEqual(qltk.get_top_parent(w), w)
    self.failUnlessEqual(qltk.get_top_parent(l), None)
    w.destroy()
    l.destroy()