Fix unittest2 runner and reorganize test imports.
We now support 3 scenarios, which each have their own block in
tests/__init__.py:
1. Python 2.7: use builtin unittest
2. Python 2.6 with unittest2
3. Python 2.6 with testtools (requires TESTRUNNER=testtools.run)
Tested that all of the following succeed:
2.7, make check-nocompat
2.7 + testtools, make check
2.7 + testtools, make TESTRUNNER=testtools.run check
2.6 + unittest2, make check
2.6 + unittest2 + testtools, make check
2.6 + unittest2 + testtools, make TESTRUNNER=testtools.run check
Change-Id: I379c0d58aeb6dab6814a1d74e4e8d989a017df38
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>