Unittests are sometimes run without network connectivity in build systems. Make that work correctly by mocking out _get_url_data with the expected return value. (cherry picked from commit 0a69e27e62)
0a69e27e62