예제 #1
0
 def test_retrieve_stdout(self):
     with retrieve_stdout() as sio:
         print("test")
         self.assertEqual(sio.getvalue(), "test\n")
예제 #2
0
 def test_retrieve_stdout(self):
     with retrieve_stdout() as sio:
         print("test")
         self.assertEqual(sio.getvalue(), "test\n")
예제 #3
0
 def test_log(self):
     with retrieve_stdout() as sio:
         log("test")
         self.assertEqual(sio.getvalue(), " COALA - test\n")
예제 #4
0
 def test_log(self):
     with retrieve_stdout() as sio:
         log("test")
         self.assertEqual(sio.getvalue(), " COALA - test\n")