Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)