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

Method test_get_proc_swaps

tests/TestMemory.py:48–56  ·  view source on GitHub ↗

Test for method get_proc_swaps

(self)

Source from the content-addressed store, hash-verified

46
47 @common.skipIfWindows
48 def test_get_proc_swaps(self):
49 """Test for method get_proc_swaps"""
50 if not exe_exists('swapon'):
51 self.skipTest('swapon not found')
52 ret = get_proc_swaps()
53 self.assertGreater(len(ret), 10)
54 if not re.search(r'Filename\s+Type\s+Size', ret):
55 raise RuntimeError(
56 "Unexpected first line in swap summary '%s'" % ret)
57
58 @common.skipIfWindows
59 def test_make_self_oom_target_linux(self):

Callers

nothing calls this directly

Calls 2

exe_existsFunction · 0.90
get_proc_swapsFunction · 0.90

Tested by

no test coverage detected