Django - Testing Django Applications
Consider this Django test code:
from django.test import TestCase
class MyTests(TestCase):
def test_user_count(self):
from django.contrib.auth.models import User
User.objects.create(username='user1')
self.assertEqual(User.objects.count(), 1)
What happens when this test runs multiple times?
