Unit test for dnf_autoremove() with real dnf
(self)
| 731 | |
| 732 | @common.skipIfWindows |
| 733 | def test_dnf_autoremove_real(self): |
| 734 | """Unit test for dnf_autoremove() with real dnf""" |
| 735 | if 0 != os.geteuid() or os.path.exists('/var/run/dnf.pid') \ |
| 736 | or not exe_exists('dnf'): |
| 737 | self.assertRaises(RuntimeError, dnf_clean) |
| 738 | else: |
| 739 | bytes_freed = dnf_autoremove() |
| 740 | self.assertIsInteger(bytes_freed) |
| 741 | logger.debug('dnf bytes cleaned %d', bytes_freed) |
| 742 | |
| 743 | @common.skipIfWindows |
| 744 | @mock.patch('bleachbit.Language.setup_translation') |
nothing calls this directly
no test coverage detected