def test_unknown(enum):
 with pytest.raises(AttributeError):
  _ = enum.three

def test_unknown ( enum ) : with pytest . raises ( AttributeError ) : _ = enum . three
test invalid values which should raise an attributeerror .