Ejemplo n.º 1
0
    def test_simple_install(self):
        r_jobs = [
            _Job([self.scipy_0_12_0], "install", R("scipy")),
            _Job([self.numpy_1_7_0], "install", R("numpy")),
        ]

        request = Request(self.pool)
        request.install(R("scipy"))
        request.install(R("numpy"))

        self.assertEqual(request.jobs, r_jobs)
Ejemplo n.º 2
0
    def test_simple_install(self):
        r_jobs = [
            _Job([self.scipy_0_12_0], "install", R("scipy")),
            _Job([self.numpy_1_7_0], "install", R("numpy")),
        ]

        request = Request(self.pool)
        request.install(R("scipy"))
        request.install(R("numpy"))

        self.assertEqual(request.jobs, r_jobs)
Ejemplo n.º 3
0
    def test_simple_upgrade(self):
        r_jobs = [_Job([], "upgrade", None)]

        request = Request(self.pool)
        request.upgrade()

        self.assertEqual(request.jobs, r_jobs)
Ejemplo n.º 4
0
    def test_simple_upgrade(self):
        r_jobs = [_Job([], "upgrade", None)]

        request = Request(self.pool)
        request.upgrade()

        self.assertEqual(request.jobs, r_jobs)
Ejemplo n.º 5
0
    def test_simple_remove(self):
        r_jobs = [
            _Job([self.numpy_1_7_0], "remove", R("numpy")),
        ]

        request = Request(self.pool)
        request.remove(R("numpy"))

        self.assertEqual(request.jobs, r_jobs)
Ejemplo n.º 6
0
    def test_simple_remove(self):
        r_jobs = [
            _Job([self.numpy_1_7_0], "remove", R("numpy")),
        ]

        request = Request(self.pool)
        request.remove(R("numpy"))

        self.assertEqual(request.jobs, r_jobs)