Exemple #1
0
 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))
Exemple #2
0
 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))
Exemple #3
0
 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))
Exemple #4
0
 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))