How to Solve NameError: name 'unittest' is not defined -- django

Solution: Import the 'unittest' module

# Add the following line to the top of your code
from django.utils import unittest

 

For more information:
django unittest