Test attribute removal using monkeypatch.delattr in pytest
Preconditions (2)
Step 1: Create a test function using pytest
Step 2: Use monkeypatch.delattr to remove an attribute from the class
Step 3: Try to access the removed attribute inside the test
Step 4: Catch the AttributeError exception
Step 5: Assert that the AttributeError is raised when accessing the removed attribute
✅ Expected Result: The test should pass by confirming that the attribute was successfully removed and accessing it raises AttributeError