def METHOD_NAME(self):
    with unittest.mock.patch('requests.Session.get') as Session:
        Session.side_effect = requests.exceptions.ConnectTimeout
        with testing_utils.tempdir() as tmpdir:
            with self.assertRaises(RuntimeError):
                build_data.download(
                    'http://test.com/bad', tmpdir, 'foo', num_retries=3
                )
        assert Session.call_count == 3