Exemple #1
0
 def test_unsymbolized_stacktrace(self):
   """Test unsymbolized stacktrace."""
   self.assertEqual(
       ['+------- fake trace ----+', 'aa', 'bb'],
       reproducers.get_only_first_stacktrace([
           '   ', '+------- fake trace ----+', 'aa', 'bb',
           '+------Release Build Unsymbolized Stacktrace (diff)------+', 'cc'
       ]))
Exemple #2
0
 def test_one_trace(self):
   """Test having only one trace."""
   self.assertEqual(['aa', 'bb'],
                    reproducers.get_only_first_stacktrace(['  ', 'aa  ',
                                                           'bb']))