Exemplo n.º 1
0
 def test_error_bad_paths(self):
     with self.assertRaises(Exception):
         with no_stderrout():
             paths = {}
             start_makelog(paths)
             write_to_makelog(paths, 'Hello, World!')
             end_makelog(paths)
Exemplo n.º 2
0
 def test_makelog_space(self):
     with no_stderrout():
         paths = self.make_paths(makelog_path='test/log/make space.log')
         start_makelog(paths)
         write_to_makelog(paths, 'Hello, World!')
         end_makelog(paths)
         self.check_makelog(paths)
Exemplo n.º 3
0
 def test_makelog_character(self):
     with no_stderrout():
         paths = self.make_paths(makelog_path='test/log/make_╬▓.log')
         start_makelog(paths)
         write_to_makelog(paths, 'Hello, World! ╬▓')
         end_makelog(paths)
         self.check_makelog(paths)
Exemplo n.º 4
0
 def test_makelog(self):
     with no_stderrout():
         paths = self.make_paths()
         start_makelog(paths)
         write_to_makelog(paths, 'Hello, World!')
         end_makelog(paths)
         self.check_makelog(paths)