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')
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))