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

def ui::UITest::test_handler_dir (   self  ) 

calling with --handler-dir

Definition at line 238 of file ui.py.

00238                               :
        '''calling with --handler-dir'''

        mydir = os.path.join(OSLib.inst.workdir, 'customdir')
        try:
            os.mkdir(mydir)
            open (os.path.join(mydir, 'kmod_nodetect.py'), 'w').write(
                sandbox.h_availability_py)
            sys.argv = ['ui-test', '--list', '-H', mydir]
            self.assertEqual(AbstractUI().run(), 0)

            self.stop_capture()

            self.assertEqual(len(self.stdout.strip().splitlines()), 5)
            self.assert_('free module with available hardware, graphics card' in self.stdout)
            self.assert_('kmod:mint ' in self.stdout)
            self.assert_('kmod:vanilla ' in self.stdout)
            self.assert_('kmod:vanilla3d ' in self.stdout)
            self.assert_('kmod:firmwifi ' in self.stdout)
        finally:
            shutil.rmtree(mydir)

    def test_get_handler_tooltip(self):


Generated by  Doxygen 1.6.0   Back to index