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)
def test_simple_upgrade(self): r_jobs = [_Job([], "upgrade", None)] request = Request(self.pool) request.upgrade() self.assertEqual(request.jobs, r_jobs)
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)