Example #1
0
    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)))
Example #2
0
    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])
Example #3
0
    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])
Example #4
0
    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)))
Example #5
0
 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"])
Example #6
0
 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"])
Example #7
0
#!"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())