示例#1
0
 def testUpdateCrashAnalysisWithNonExistentProperty(self):
     update = {'dummy': 'dummy_content'}
     analysis = CrashAnalysis()
     analysis.Update(update)
     self.assertFalse(hasattr(analysis, 'dummy'))
示例#2
0
 def testUpdateCrashAnalysis(self):
     update = {'note': 'dummy'}
     analysis = CrashAnalysis()
     analysis.Update(update)
     self.assertEqual(analysis.note, update['note'])