Information about the package, python-unittest2, which is shipped with common Linux distributions. The python-unittest2 package is designed for, Backport of new unittest features for Python 2.7 to Python 2.4+.
Package Name:
python-unittest2
Summary:
Backport of new unittest features for Python 2.7 to Python 2.4+
Description:
unittest2 is a backport of the new features added to the unittest testing framework in Python 2.7. It is tested to run on Python 2.4 - 2.6. To use unittest2 instead of unittest simply replace ``import unittest`` with ``import unittest2``. Classes in unittest2 derive from the equivalent classes in unittest, so it should be possible to use the unittest2 test running infra- structure without having to switch all your tests to using unittest2 immediately. Similarly you can use the new assert methods on ``unittest2.TestCase`` with the standard unittest test running infrastructure. Not all of the new features in unittest2 will work with the standard unittest test loaders and runners however.
Architecture:
noarch
Version:
0.5.1
Release:
3.el6
Size:
138 k
Repository:
epel
From Repository:
Licence:
BSD
Control the python-unittest2 package with the following handy commands outlined below.
yum install python-unittest2
This command will install python-unittest2 on the server.
yum remove python-unittest2
This command will un-install python-unittest2 on the server. When you run this command, you will be asked if you are sure that you want to remove python-unittest2, so you have to manually confirm that you want to do this.
yum -y remove python-unittest2
This command will un-install python-unittest2 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 python-unittest2 when using the -y flag.
yum update python-unittest2
This command will update python-unittest2 to the latest version. When you run this command, you will be asked if you are sure that you want to remove python-unittest2, so you have to manually confirm that you want to do this.
yum -y update python-unittest2
This command will update python-unittest2 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 python-unittest2 when using the -y flag.
yum info python-unittest2
This command will show you core information about the python-unittest2 package.
yum deplist python-unittest2
This command will show you the dependencies for python-unittest2. 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 python-unittest2
This command will check if there is an update waiting on python-unittest2. 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.