Ejemplo n.º 1
0
 def test_intro_bridge(self):
     bare_logger = logger.Logger(self.ts)
     bare_logger.log_stream = StringIO()
     bare_logger.log_bridge([], [], 3)
     output = bare_logger.log_stream.getvalue()
     assert output.splitlines()[0] == "# bridge out of Guard3, 0 ops"        
     pure_parse(output)
Ejemplo n.º 2
0
 def test_intro_loop(self):
     bare_logger = logger.Logger(self.ts)
     bare_logger.log_stream = StringIO()
     bare_logger.log_loop([], [], 1, "foo")
     output = bare_logger.log_stream.getvalue()
     assert output.splitlines()[0] == "# Loop1 (foo), 0 ops"
     pure_parse(output)
Ejemplo n.º 3
0
 def test_intro_bridge(self):
     bare_logger = logger.Logger(self.make_metainterp_sd())
     output = capturing(bare_logger.log_bridge, [], [], 3)
     assert output.splitlines()[0] == "# bridge out of Guard 3 with 0 ops"
     pure_parse(output)
Ejemplo n.º 4
0
 def test_intro_loop(self):
     bare_logger = logger.Logger(self.make_metainterp_sd())
     output = capturing(bare_logger.log_loop, [], [], 1, "foo")
     assert output.splitlines()[0] == "# Loop 1 () : foo with 0 ops"
     pure_parse(output)