Exemple #1
0
 def test_chromium_resource_load(self):
     """Tests verbose line."""
     self.assertTrue(
         logger.is_line_valid(
             'V/chromium( 8530): [VERBOSE1:network_delegate.cc(31)] '
             'NetworkDelegate::NotifyBeforeURLRequest: '
             'https://en.m.wikipedia.org'))
Exemple #2
0
 def test_url(self):
   """Tests verbose line."""
   # pylint: disable=line-too-long
   self.assertTrue(
       logger.is_line_valid(
           'V/chromium( 8530): [VERBOSE1:network_delegate.cc(31)] '
           'NetworkDelegate::NotifyBeforeURLRequest: '
           'https://en.m.wikipedia.org'))
Exemple #3
0
 def test_info(self):
   """Tests info line."""
   self.assertTrue(
       logger.is_line_valid(
           'I/chromium( 8530): [INFO:CONSOLE(166)] Hello friend!'))
Exemple #4
0
 def test_verbose(self):
   """Tests verbose line."""
   self.assertFalse(
       logger.is_line_valid('V/chromium( 8572): [VERBOSE1:] Not implemented.'))
Exemple #5
0
 def test_debug(self):
   """Tests debug line."""
   self.assertFalse(
       logger.is_line_valid('D/ConnectivityService(  812): notifyType'))
Exemple #6
0
 def test_beginning_of(self):
     """Tests beginning of line."""
     self.assertFalse(logger.is_line_valid('--------- beginning of system'))