On Friday, March 11, 2011 11:04:39 pm Mike Ramirez wrote:

> assertContains is a django specific test and located in test.TestCase with
> the others (you can find TransactionTestCase in there also).
> 

I should also add, TransactionTestCase is the base for TestCase and TestCase 
is really a patch to convince TransactionTestCase that a transaction occured, 
but the transaction does nothing.

TestCase's docstring:

"Does basically the same as TransactionTestCase, but surrounds every test with 
a transaction, monkey-patches the real transaction management routines to do 
nothing, and rollsback the test transaction at the end of the test. You have 
to use TransactionTestCase, if you need transaction management inside a test."

Mike


-- 
Work without a vision is slavery, Vision without work is a pipe dream,
But vision with work is the hope of the world.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to