diff --git a/tests/test_make.py b/tests/test_make.py index 0c4ee0164..3276b45d0 100644 --- a/tests/test_make.py +++ b/tests/test_make.py @@ -1017,6 +1017,20 @@ def test_converter_takes_self(self): assert i.x == 2 + def test_fields_converter_is_passed_converter(self): + """ + attr.fields(C).a.converter is same object as passed converter + """ + + def f(value): + return value + + @attr.s + class C(object): + a = attr.ib(converter=f) + + assert attr.fields(C).a.converter is f + class TestValidate(object): """