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

def ui::UITest::test_disable_nochange (   self  ) 

calling with --disable on a non-changeable handler

Definition at line 146 of file ui.py.

00146                                    :
        '''calling with --disable on a non-changeable handler'''

        open (os.path.join(OSLib.inst.handler_dir, 'h.py'), 'w').write(
            'import jockey.handlers' + sandbox.h_nochangemod)

        sys.argv = ['ui-test', '--disable', 'kmod:vanilla']
        ui = sandbox.TestUI()
        self.assertNotEqual(ui.run(), 0)
        self.stop_capture()

        for h in ui.handlers:
            self.assert_(h.enabled())

        self.assert_('I must live' in self.stderr)

    def test_disable_confirm_cancel(self):


Generated by  Doxygen 1.6.0   Back to index