Logo Search packages:      
Sourcecode: jockey version File versions  Download package

def ui::UITest::test_mode_any (   self  ) 

calling with --mode any

Definition at line 318 of file ui.py.

00318                            :
        '''calling with --mode any'''

        sys.argv = ['ui-test', '--mode', 'any']
        ui = sandbox.TestUI()
        self.stop_capture()

        self.assertEqual(set([h.module for h in ui.handlers]), 
            set(['vanilla', 'vanilla3d', 'mint', 'firmwifi', 'foodmi']))

        # mint is not enabled by default
        self.failIf('Restricted' in ui.main_window_title())
        (h, s) = ui.main_window_text()
        self.assert_('No proprietary drivers are in use' in h)
        self.assert_('risk' in s)

        # enable mint
        for h in ui.handlers:
            if h.module == 'mint':
                h.enable()
        (h, s) = ui.main_window_text()
        self.assert_('Proprietary drivers are being used' in h)
        self.assert_('risk' in s)

    def test_mode_free(self):


Generated by  Doxygen 1.6.0   Back to index