100% coverage for upstream.py