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

Method test_yum_clean

tests/TestUnix.py:711–719  ·  view source on GitHub ↗

Unit test for yum_clean()

(self)

Source from the content-addressed store, hash-verified

709
710 @common.skipIfWindows
711 def test_yum_clean(self):
712 """Unit test for yum_clean()"""
713 if 0 != os.geteuid() or os.path.exists('/var/run/yum.pid') \
714 or not exe_exists('yum'):
715 self.assertRaises(RuntimeError, yum_clean)
716 else:
717 bytes_freed = yum_clean()
718 self.assertIsInteger(bytes_freed)
719 logger.debug('yum bytes cleaned %d', bytes_freed)
720
721 @common.skipIfWindows
722 def test_dnf_clean(self):

Callers

nothing calls this directly

Calls 3

exe_existsFunction · 0.90
yum_cleanFunction · 0.90
assertIsIntegerMethod · 0.80

Tested by

no test coverage detected