def test_install_simple(self): with mkdtemp() as d: main([DUMMY_EGG, "--prefix={0}".format(d)]) self.assertTrue(os.path.basename(DUMMY_EGG) in list(get_installed(d))) main(["-r", DUMMY_EGG, "--prefix={0}".format(d)]) self.assertFalse(os.path.basename(DUMMY_EGG) in list(get_installed(d)))
def test_non_existing_removal(self): """ Regression test for #208 """ # Given non_existing_package = "nono_le_petit_robot" # When/Then main(["--remove", non_existing_package])
def test_install_simple(self): with mkdtemp() as d: main([DUMMY_EGG, "--prefix={0}".format(d)]) self.assertTrue( os.path.basename(DUMMY_EGG) in list(get_installed(d))) main(["-r", DUMMY_EGG, "--prefix={0}".format(d)]) self.assertFalse( os.path.basename(DUMMY_EGG) in list(get_installed(d)))
def test_list(self): # XXX: this is lousy test: we'd like to at least ensure we're printing # the correct packages, but capturing the stdout is a bit tricky. Once # we replace print by proper logging, we should be able to do better. main(["--list"])
#!"C:\Program Files (x86)\IronPython 2.7\ipy.exe" # This script was created by egginst when installing: # # ironpkg-1.0.0-1.egg # if __name__ == '__main__': import sys from egginst.main import main sys.exit(main())