Beispiel #1
0
    def test_update_old_plan(self):
        old_plan = ['# plan', 'INSTRUCTION arg']
        new_plan = plan.update_old_plan(old_plan)

        expected = [('INSTRUCTION', 'arg')]
        self.assertEqual(new_plan, expected)

        with self.assertRaises(CondaException):
            plan.update_old_plan(['INVALID'])
Beispiel #2
0
    def test_update_old_plan(self):
        old_plan = ["# plan", "INSTRUCTION arg"]
        new_plan = plan.update_old_plan(old_plan)

        expected = [("INSTRUCTION", "arg")]
        self.assertEqual(new_plan, expected)

        with self.assertRaises(CondaException):
            plan.update_old_plan(["INVALID"])