selftest.py: Use testtools TestCase class.