def test_log_lvl_1_lvl2_msg(self):
     msg = 'foo'
     gr = GenericRunner(['-v'])
     with Capturing() as output:
         gr.log(msg, 2)
     self.assertEqual(output.stdout(), [], 'there should be no stdout')
     self.assertEqual(output.stderr(), [], 'there should be no stderr')
 def test_log_lvl_0_forced_msg(self):
     msg = 'foo'
     gr = GenericRunner()
     with Capturing() as output:
         gr.log(msg, 0)
     self.assertEqual(output.stdout(), [msg], 'there should be no stdout')
     self.assertEqual(output.stderr(), [], 'there should be no stderr')