def testGetTopBugsResult_DownloadError_ReturnsEmptyList(self): mock_rpc = mock.MagicMock() mock_rpc.get_result = mock.MagicMock(side_effect=urlfetch.DownloadError) self.assertEqual([], main._GetTopBugsResult(mock_rpc))
def testGetTopBugsResult_DownloadError_ReturnsEmptyList(self): mock_rpc = mock.MagicMock() mock_rpc.get_result = mock.MagicMock( side_effect=urlfetch.DownloadError) self.assertEqual([], main._GetTopBugsResult(mock_rpc))
def testGetTopBugsResult_DeadlineExceededError_ReturnsEmptyList(self): mock_rpc = mock.MagicMock() mock_rpc.get_result = mock.MagicMock( side_effect=urlfetch_errors.DeadlineExceededError) self.assertEqual([], main._GetTopBugsResult(mock_rpc))