Exemple #1
0
 def test_install(self, mock_chksum, mock_deploy, mock_install):
     env.host = 'any_host'
     self.remove_runs_once_flag(package.install)
     package.install('/any/path/rpm')
     mock_chksum.assert_called_with('/any/path/rpm')
     mock_deploy.assert_called_with('/any/path/rpm')
     mock_install.assert_called_with('rpm')
 def test_install(self, mock_chksum, mock_deploy, mock_install):
     env.host = 'any_host'
     self.remove_runs_once_flag(package.install)
     package.install('/any/path/rpm')
     mock_chksum.assert_called_with('/any/path/rpm')
     mock_deploy.assert_called_with('/any/path/rpm')
     mock_install.assert_called_with('rpm')