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

def ui::UITest::test_install_packages (   self  ) 

{install,remove}_package() and installed_packages logging

Definition at line 633 of file ui.py.

00633                                    :
        '''{install,remove}_package() and installed_packages logging'''

        pkglog = os.path.join(OSLib.inst.backup_dir, 'installed_packages')
        ui = sandbox.TestUI()
        self.failIf(os.path.exists(pkglog))

        # coreutils package is already installed
        self.assert_(OSLib.inst.package_installed('coreutils'))
        ui.install_package('coreutils')
        self.failIf(os.path.exists(pkglog))

        # install mesa-vanilla
        self.failIf(OSLib.inst.package_installed('mesa-vanilla'))
        ui.install_package('mesa-vanilla')
        self.assert_(OSLib.inst.package_installed('mesa-vanilla'))
        self.assertEqual(open(pkglog).read(), 'mesa-vanilla\n')

        # install pretzel
        self.failIf(OSLib.inst.package_installed('pretzel'))
        ui.install_package('pretzel')
        self.assert_(OSLib.inst.package_installed('pretzel'))
        inst = sorted(open(pkglog).readlines())
        self.assertEqual(inst, ['mesa-vanilla\n', 'pretzel\n'])

        # remove mesa-vanilla
        ui.remove_package('mesa-vanilla')
        self.failIf(OSLib.inst.package_installed('mesa-vanilla'))
        self.assertEqual(open(pkglog).read(), 'pretzel\n')

        # remove pretzel
        ui.remove_package('pretzel')
        self.failIf(OSLib.inst.package_installed('pretzel'))
        self.failIf(os.path.exists(pkglog))

    def test_check_composite_noavail(self):


Generated by  Doxygen 1.6.0   Back to index