the number of assertions performed instead of the number of
test-methods called? I have things like
def test_date_fenceposts(self):
date_result_tuples_to_test = (
(date(2011,4,1), 35),
... #however many test dates I need for fencepost checks
)
for date, result in date_result_tuples_to_test:
self.assertEqual(process(date), result)
However when I "./manage.py test" this, I only get one test
result, but I'd like to know that this actually tested
len(date_result_tuples_to_test) assertions.
Any way to get the desired output?
-tkc
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment