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