Example #1
0
 def test_command_not_present(self):
     self.mock_install_package_providing()
     ensure_command('apt-get-two-o')
     self.assertTrue(self.install_pkg_providing_called)
 def test_command_not_present(self):
     self.mock_install_package_providing()
     ensure_command('apt-get-two-o')
     self.assertTrue(self.install_pkg_providing_called)
Example #3
0
 def test_command_already_present(self):
     self.mock_install_package_providing()
     ensure_command('apt-get')
     self.assertFalse(self.install_pkg_providing_called)
 def test_command_already_present(self):
     self.mock_install_package_providing()
     ensure_command('apt-get')
     self.assertFalse(self.install_pkg_providing_called)