def test_collector_fails_after_five_http_500_errors(self):
        self.mock_jobs_service.getQueryResults().execute.side_effect = (
            MockHttpError(500))

        with self.assertRaises(external.BigQueryCommunicationError):
            self.collector.collect_results('dummy_job_id')
        self.assertEqual(
            5, self.mock_jobs_service.getQueryResults().execute.call_count)
Sets whether or not to preserve the aspect ratio of the
dataset/ETHPy150Open m-lab/telescope/tests/test_external.py/BigQueryJobResultCollectorTest.test_collector_fails_after_five_http_500_errors--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_image_view.py/QtImageView.set_preserve_aspect_ratio