Top "Unittest2" questions

How to run unittest discover from "python setup.py test"?

I'm trying to figure out how to get python setup.py test to run the equivalent of python -m unittest …

python unit-testing nose pytest unittest2
How do I handle multiple asserts within a single Python unittest?

This is a problem that came up when performing a single test that had multiple independent failure modes, due to …

python unit-testing testing unittest2
`python -m unittest discover` does not discover tests

Python's unittest discover does not find my tests! I have been using nose to discover my unit tests and it …

python unit-testing nose unittest2
How can you get unittest2 and coverage.py working together?

How can you get unittest2 and coverage.py working together? In theory something like coverage run unit2 discover should work, …

python code-coverage unittest2
Order of tests in python unittest

I was looking at similar questions and I couldn't find an answer to my problem. I wrote Tests in a …

python python-unittest unittest2
How to run specific test in Nose2

In previous version of Nose testing framework, there were several ways to specify only a subset of all tests: nosetests …

python nosetests unittest2 nose2
ImportError: No module named test_data, but test_data.py in same directory as test.py under PyCharm using virtualenv

In test.py, I am trying to import test_data: import unittest2 import re from test_data import receipt1_example …

python import virtualenv pycharm unittest2