Esempio n. 1
0
 def test_apt_autoremove_nonfatal(self, run_apt_command):
     fetch.apt_autoremove(purge=False, fatal=False)
     run_apt_command.assert_called_with(
         ['apt-get', '--assume-yes', 'autoremove'], False)
Esempio n. 2
0
 def test_apt_autoremove_fatal(self, run_apt_command):
     fetch.apt_autoremove(purge=True, fatal=True)
     run_apt_command.assert_called_with(
         ['apt-get', '--assume-yes', 'autoremove', '--purge'], True)