def testGetMergedFailureKey(self): self.assertEqual( self.target_entities[0].key, CompileFailure.GetMergedFailureKey( {}, self.build_id, 'compile', self.target_entities[0].GetFailureIdentifier()))
def _GetMergedFailureKey(self, failure_entities, referred_build_id, step_ui_name, atomic_failure): return CompileFailure.GetMergedFailureKey(failure_entities, referred_build_id, step_ui_name, atomic_failure)
def testGetMergedFailureKeyNoBuildId(self): with self.assertRaises(AssertionError): CompileFailure.GetMergedFailureKey({}, None, 's', frozenset([]))