def test_connect_alias(self): app = App2() Builder.auto_connect_by_name(app, self.builder) window = self.builder.get_object('window') window.emit('show') self.assertEqual(app.messages, ['called by alias'])
def test_connect_auto(self): app = App() Builder.auto_connect_by_name(app, self.builder) # glade does not have on_window_show window = self.builder.get_object('window') window.emit('show') self.assertEqual(app.messages, ['on_window_show'])