X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/550242c2d5fb0c26b18350573422d9199fcd1d93..f080dcbd0d27b7e830a1c0c544f049212ed79e61:/sdk/cwl/tests/test_util.py diff --git a/sdk/cwl/tests/test_util.py b/sdk/cwl/tests/test_util.py index 2200d99516..3ca02c7df6 100644 --- a/sdk/cwl/tests/test_util.py +++ b/sdk/cwl/tests/test_util.py @@ -45,4 +45,12 @@ class TestUtil(unittest.TestCase): logger = mock.MagicMock() with self.assertRaises(ApiError): - get_current_container(api, num_retries=0, logger=logger) \ No newline at end of file + get_current_container(api, num_retries=0, logger=logger) + + def test_get_current_container_404_error(self): + api = mock.MagicMock() + api.containers().current().execute.side_effect = ApiError(httplib2.Response({"status": 404}), bytes(b"")) + logger = mock.MagicMock() + + current_container = get_current_container(api, num_retries=0, logger=logger) + self.assertEqual(current_container, None) \ No newline at end of file