Пример #1
0
 def testGetWPRArchivePath_matchedWithKey(self):
   test = {
       'annotations': {
           'WPRArchiveDirectory': {
               'value': 'abc'
           }
       },
       'class': 'WPRDummyTest',
       'method': 'testRun',
       'is_junit4': True,
   }
   self.assertEqual(
       local_device_instrumentation_test_run._GetWPRArchivePath(test), 'abc')
Пример #2
0
 def testGetWPRArchivePath_noMatchedWithKey(self):
   test = {
       'annotations': {
           'Feature': {
               'value': 'abc'
           }
       },
       'class': 'WPRDummyTest',
       'method': 'testRun',
       'is_junit4': True,
   }
   self.assertFalse(
       local_device_instrumentation_test_run._GetWPRArchivePath(test))