This is a bit preliminary, because there are still XXX comments and I don't really know how to do this sort of thing, but it's worth getting feedback now.
This branch changes Launchpad to use a testtools release, rather than the branch. It then changes our base test case to inherit from testtools.TestCase rather than unittest.TestCase directly. This lets us delete a whole bunch of code.
While looking at lp/testing/__init__.py, I noticed a few things that could be improved. The ones I could easily fix (like the duplicated code in 'assertRaisesWithContent'), I fixed. Others, I've marked with XXXs.
I haven't run the tests yet, partly since I'm afraid of committing the tarball for testtools to the download-cache.
This is a bit preliminary, because there are still XXX comments and I don't really know how to do this sort of thing, but it's worth getting feedback now.
This branch changes Launchpad to use a testtools release, rather than the branch. It then changes our base test case to inherit from testtools.TestCase rather than unittest.TestCase directly. This lets us delete a whole bunch of code.
While looking at lp/testing/ __init_ _.py, I noticed a few things that could be improved. The ones I could easily fix (like the duplicated code in 'assertRaisesWi thContent' ), I fixed. Others, I've marked with XXXs.
I haven't run the tests yet, partly since I'm afraid of committing the tarball for testtools to the download-cache.