MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / test_journald_clean

Method test_journald_clean

tests/TestUnix.py:497–508  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

495
496 @common.skipIfWindows
497 def test_journald_clean(self):
498 if not exe_exists('journalctl'):
499 self.assertRaises(RuntimeError, journald_clean)
500 else:
501 try:
502 journald_clean()
503 except RuntimeError as rte:
504 # On my system as a regular user, this succeeds.
505 # On Travis running Trusty, this worked.
506 # On Travis running Xenial, there is a permissions error.
507 if common.have_root():
508 raise rte
509
510 def test_journald_regex(self):
511 """Test the regex for journald_clean()"""

Callers

nothing calls this directly

Calls 2

exe_existsFunction · 0.90
journald_cleanFunction · 0.90

Tested by

no test coverage detected