def test_error_does_not_support_property_assignment():
    error = Error(content={'messages': ['failed']})
    with pytest.raises(TypeError):
        error.integer = 456
def test_error_does_not_support_property_assignment():
    error = Error(['failed'])
    with pytest.raises(TypeError):
        error.integer = 456
Example #3
0
def test_error_does_not_support_property_assignment():
    error = Error(content={"messages": ["failed"]})
    with pytest.raises(TypeError):
        error.integer = 456