haven´t done much testing yet, so this may be a trivial question. here´s my testcase: class CostAccountModelTests(TestCase): def setUp(self): self.account = CostAccount.objects.create(user_id=1) def test_account_created(self): self.assertEqual(CostAccount.objects.count(), 1)
the user-database is empty, so CostAccount.objects.create(user_id=1) shouldn´t work (because user is an fk to auth.user). I´ve read that exceptions within setUp are considered an error rather than a test failure ... but, test_account_created should fail, right? thanks, patrick -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.