PyTest - Writing Assertions
What is wrong with this test code?
import pytest
def test_attribute_error():
with pytest.raises(AttributeError):
obj = None
obj.method()