by dnsauve · 17y ago · 0 comments
These methods could themselves also contain assertThis, assertThat, as needed to ensure they're functioning as expected as well.
Another way I've done it is to have tests calling other test methods themselves. i.e., something like:
testFoo(self):
# Do some test here.
self.assertTrue(....)
testBar(self):
# Test that Foo works for logged in user as well
self.client.login(username='joe', password='abc')
self.testFoo()
self.assertTrue(...)Edit: It is worth noting that I'm trying to keep the unit tests independent, however.