Test for method get_proc_swaps
(self)
| 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): |
nothing calls this directly
no test coverage detected