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

Solution: Import the 'eq_' module

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

 

For more information:
nose eq_