Task: Test That a Python Function Throws an Exception
Task: Test That a Python Function Throws an Exception: a task in Terminal-Lego-15k (Harbor dataset). Your task is to write a Python unit test that verifies a function correctly raises an expected exception. The test should fail only if the function doesn't throw the expected exception .
Part of PrimeIntellect/Terminal-Lego-15k.