Top "Nose" questions

Nose is an alternate Python unittest discovery and running process.

How to change the message in a Python AssertionError?

I'm writing per the following, in which I try to produce a decent error message when comparing two multiline blocks …

python exception assertions nose
Mocking two functions with patch for a unit test

I have a function I want to unit test contains calls two other functions. I am unsure how can I …

python unit-testing testing mocking nose
How do I run a single test with Nose in Pylons

I have a Pylons 1.0 app with a bunch of tests in the test/functional directory. I'm getting weird test results …

testing pylons nose nosetests
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
ModuleNotFoundError: No module named 'numpy.testing.nosetester'

I was using the Decision Tree and this error was raised. The same situation appeared when I used Back Propagation. …

python numpy machine-learning nose
Python Nose Import Error

I can't seem to get the nose testing framework to recognize modules beneath my test script in the file structure. …

python nose python-import
Why python mock patch doesn't work?

I have two files spike.py class T1(object): def foo(self, afd): return "foo" def get_foo(self): return …

python unit-testing mocking nose
Installing nose using pip, but bash doesn't recognize command on mac

I'm trying to install nose on my computer for the Learn Python the Hard Way tutorial, but can't seem to …

python python-2.7 nose python-module nosetests
How should I verify a log message when testing Python code under nose?

I'm trying to write a simple unit test that will verify that, under a certain condition, a class in my …

python unit-testing mocking nose
Getting Python's unittest results in a tearDown() method

Is it possible to get the results of a test (i.e. whether all assertions have passed) in a tearDown() …

python unit-testing nose