I'm using the unittesting-environment for test-driven-development in Django. It works excellent, but one matter is puzzling. The Django documentation tells me this:
"The test database Tests that require a database (namely, model tests) will not use your "real" (production) database. A separate, blank database is created for the tests." However, the test database is not empty after creation, it has two users, which makes my test fail: class MyselfTest(unittest.TestCase): def testNoInitialUsers(self): all_users = User.objects.all() self.assertEqual(0, len(all_users)) The test fails with the message: AssertionError: 0 != 2 When I print the usernames of these users, they are "testuser" and "testuser2". I expect one of two explanations; either I am doing something strange, or the Django-documentation for "Testing Django Applications" is not correct. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---