Django - Testing Django Applications
You wrote this test but it raises an error:
from django.test import SimpleTestCase
class MyTests(SimpleTestCase):
def test_db_access(self):
from django.contrib.auth.models import User
User.objects.create(username='user1')
What is the cause of the error?
