unit2
New features in unittest for Python 2
Install
- All systems
-
curl cmd.cat/unit2.sh
- Debian
-
apt-get install python-unittest2
- Ubuntu
-
apt-get install python-unittest2
- Arch Linux
-
pacman -S python2-unittest2
- Kali Linux
-
apt-get install python-unittest2
- Fedora
-
dnf install python2-unittest2
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install python-unittest2
- Raspbian
-
apt-get install python-unittest2
- Dockerfile
- dockerfile.run/unit2
python2-unittest2
New features in unittest for Python 2
python-unittest2
backport of the enhanced unittest testing framework - Python 2.7
unittest2 is an enhanced version of unittest including a standard test runner (automatic test discovery), class and module level fixtures (setUpClass / setUpModule etc), many powerful new assert methods, better resource management with addCleanups and a host of other new features. These new features are *all* going into the Python version of unittest in Python 2.7 and Python 3.2. The point of unittest2 is that it works with Python 2.4 - 2.6; you can use it now. This package contains the Python 2.7 module.