~ubuntu-branches/ubuntu/raring/kiwi/raring

« back to all changes in this revision

Viewing changes to tests/test_BaseView.py

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-01-30 09:52:28 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070130095228-n0mkqlt82e74twqc
Tags: 1.9.12-0ubuntu1
* New upstream release.
* debian/patches/03_epyrun_use_local_modules.patch:
  - updated.
* debian/control:
  - moved python-support from Build-Depends to Build-Depends-Indep.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
class BaseViewTest(unittest.TestCase):
80
80
 
81
81
    def setUp(self):
82
 
        self.foo = FooController(FooView())
 
82
        self.view = FooView()
 
83
        self.foo = FooController(self.view)
83
84
        refresh_gui()
84
85
 
85
86
    def tearDown(self):
86
 
        for win in gtk.window_list_toplevels():
87
 
            win.destroy()
 
87
        self.view.win.destroy()
88
88
 
89
89
    def testFooButton(self):
90
90
        self.foo.view.foo__button.clicked()