def testStackTraceWriteBigStackTraceToStorage(self):
        """Tests ``stack_trace`` setter writes big stacktrace to cloud storage."""
        identifiers = {'signature': 'sig'}
        analysis = CrashAnalysis.Create(identifiers)
        big_stacktrace = 'a' * 2048487
        analysis.stack_trace = big_stacktrace
        analysis.put()

        self.assertEqual(
            CrashAnalysis.Get(identifiers).stack_trace, big_stacktrace)
 def GetAnalysis(self, crash_identifiers):
     return CrashAnalysis.Get(crash_identifiers)
 def testCreateCrashAnalysis(self):
     crash_identifiers = {'signature': 'sig'}
     analysis = CrashAnalysis.Create(crash_identifiers)
     analysis.put()
     self.assertIsNotNone(analysis)
     self.assertEqual(CrashAnalysis.Get(crash_identifiers), analysis)