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

Method test_snap_disabled_clean

tests/TestUnix.py:800–807  ·  view source on GitHub ↗

Unit test for snap_disabled_clean()

(self)

Source from the content-addressed store, hash-verified

798 @common.skipIfWindows
799 @common.skipUnlessDestructive
800 def test_snap_disabled_clean(self):
801 """Unit test for snap_disabled_clean()"""
802 if not exe_exists('snap'):
803 self.assertRaises(RuntimeError, snap_disabled_clean)
804 else:
805 bytes_freed = snap_disabled_clean()
806 self.assertIsInteger(bytes_freed)
807 logger.debug('snap disabled bytes freed %d', bytes_freed)
808
809 @common.skipIfWindows
810 def test_snap_disabled_preview(self):

Callers

nothing calls this directly

Calls 3

exe_existsFunction · 0.90
snap_disabled_cleanFunction · 0.90
assertIsIntegerMethod · 0.80

Tested by

no test coverage detected