Exemple #1
0
 def setUp(self):
   super(LocalDeviceInstrumentationTestRunTest, self).setUp()
   self._env = mock_environment.MockEnvironment()
   self._ti = mock_test_instance.MockTestInstance()
   self._obj = (
       local_device_instrumentation_test_run.LocalDeviceInstrumentationTestRun(
           self._env, self._ti))
 def testShouldRetry_notRun(self):
     env = mock_environment.MockEnvironment()
     ti = mock_test_instance.MockTestInstance()
     obj = (local_device_instrumentation_test_run.
            LocalDeviceInstrumentationTestRun(env, ti))
     test = {
         'annotations': {},
         'class': 'SadTest',
         'method': 'testNotRun',
         'is_junit4': True,
     }
     result = base_test_result.BaseTestResult(
         'SadTest.testNotRun', base_test_result.ResultType.NOTRUN)
     self.assertTrue(obj._ShouldRetry(test, result))