

@httpretty.activate
def test_source_from_url_certificate(self):
    ' When the manifest is sourced from a url, the source should be the url. '
    with patch('sprinter.lib.cleaned_request') as cleaned_request:
        mock = Mock(spec=Response)
        mock.text = old_manifest
        cleaned_request.return_value = mock
        TEST_URI = 'https://testme.com/test.cfg'
        load_manifest(TEST_URI, verify_certificate=False)
        cleaned_request.assert_called_with('get', TEST_URI, verify=False)

dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/tests/test_manifest.py TestManifest.test_source_from_url_certificate/original