django-admin.py startproject superlists
cd superlists/
python manage.py startapp lists
python3 manage.py test
在tests.py中编写类方法,继承TestCase
from django.test import TestCase
# Create your tests here.
class Smokeclass(TestCase):
def test_bad_maths(self):
self.assertEquals(1+1,3)