import gtk

builder = gtk.Builder()
builder.add_from_file('testcase.ui')

obj_names = [obj.get_name() for obj in builder.get_objects()]

print "Actual widget names:\t", obj_names
print "Expected widget names:\t", ['window1','button1','action1']
