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'])
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"])