Exemplo n.º 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)
Exemplo n.º 2
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)
Exemplo n.º 3
0
 def test_command_already_present(self):
     self.mock_install_package_providing()
     ensure_command('apt-get')
     self.assertFalse(self.install_pkg_providing_called)
Exemplo n.º 4
0
 def test_command_already_present(self):
     self.mock_install_package_providing()
     ensure_command('apt-get')
     self.assertFalse(self.install_pkg_providing_called)