100% coverage for module resource.py