예제 #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'
       ]))
예제 #2
0
 def test_one_trace(self):
   """Test having only one trace."""
   self.assertEqual(['aa', 'bb'],
                    reproducers.get_only_first_stacktrace(['  ', 'aa  ',
                                                           'bb']))