[#1081] Pep8 model.resource
[#1081] Fix for test