def test_emptyisinvalid(self):
     qb = search.QueryBuilder()
     self.assertFalse(qb.validate())
示例#2
0
 def on_query_button_clicked(self, widget):
     qb = search.QueryBuilder()
     if qb.start() == gtk.RESPONSE_OK:
         query = qb.get_query()
         self.widgets.main_comboentry.child.set_text(query)
         self.widgets.go_button.emit("clicked")
 def test_cancreatequerybuilder(self):
     search.QueryBuilder()