Information about the package, python2-mock, which is shipped with common Linux distributions. The python2-mock package is designed for, A Python Mocking and Patching Library for Testing.
Package Name:
python2-mock
Summary:
A Python Mocking and Patching Library for Testing
Description:
Mock is a Python module that provides a core mock class. It removes the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set
Architecture:
noarch
Version:
1.0.1
Release:
10.el6
Size:
93 k
Repository:
epel
From Repository:
Licence:
BSD
Control the python2-mock package with the following handy commands outlined below.
yum install python2-mock
This command will install python2-mock on the server.
yum remove python2-mock
This command will un-install python2-mock on the server. When you run this command, you will be asked if you are sure that you want to remove python2-mock, so you have to manually confirm that you want to do this.
yum -y remove python2-mock
This command will un-install python2-mock on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python2-mock when using the -y flag.
yum update python2-mock
This command will update python2-mock to the latest version. When you run this command, you will be asked if you are sure that you want to remove python2-mock, so you have to manually confirm that you want to do this.
yum -y update python2-mock
This command will update python2-mock to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove python2-mock when using the -y flag.
yum info python2-mock
This command will show you core information about the python2-mock package.
yum deplist python2-mock
This command will show you the dependencies for python2-mock. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.
yum check-update python2-mock
This command will check if there is an update waiting on python2-mock. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.