How to Solve NameError: name 'assert_equals' is not defined -- nose

Solution: Import the 'assert_equals' module

# Add the following line to the top of your code
from nose.tools import assert_equals

 

For more information:
nose assert_equals