~xubuntu-dev/ubiquity/lp1437180_feh

« back to all changes in this revision

Viewing changes to tests/run-gtk

  • Committer: Evan Dandrea
  • Date: 2010-04-08 13:58:29 UTC
  • mto: This revision was merged to the branch mainline in revision 4123.
  • Revision ID: evan.dandrea@canonical.com-20100408135829-y6ljaxt00y84xuf4
Initial commit of test work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
import unittest
 
4
import os, sys
 
5
# Make sure we're working in the source tree.
 
6
sys.path.insert(0, '.')
 
7
#os.environ['UBIQUITY_PLUGIN_PATH'] = './ubiquity/components'
 
8
from ubiquity.frontend import gtk_ui
 
9
 
 
10
class FrontendTests(unittest.TestCase):
 
11
    def setUp(self):
 
12
        self.frontend = gtk_ui.Wizard('ubuntu')
 
13
        # fail.
 
14
        self.frontend.live_installer.hide()
 
15
 
 
16
    def testReturnToPartitioner(self):
 
17
        self.frontend.installing = True
 
18
        self.frontend.return_to_partitioning()
 
19
 
 
20
    def tearDown(self):
 
21
        # Needed?
 
22
        self.frontend.quit_main_loop()
 
23
 
 
24
if __name__ == '__main__':
 
25
    unittest.main()