The bug discoverd in 14e7fa6255d10a2354d85f98a5e9eaa73f0fbd36 has been reported: plone/plone.restapi#1189 When it gets resolved the break in https://github.com/CharString/affen/blob/35da413463c8a86a6615eb24f77bb015b77a043a/tests/test_utils.py#L39 can be removed. And the tests should have full branch coverage then.