Move useful helpers into test_helpers.

So they can be re-used elsewhere.

Change-Id: I4fc3622d7466010f54a525305a92355282b4fa67
Remove redunant not-apache check.

This was intended to ensure that the instance being tested was using
the same source as the instance running the tests. However, this isn't
contingent on it not being run against apache, so the check was worthless.

Change-Id: I783c3be8ab34b73a13de18e78f3a945f9d459295
Prefer setUp/tearDown to doing this in the tests.

Change-Id: Ic5177a065d8223f4ec162952cab57549133ee218
Remove redundant semi-colons.

These aren't needed in python, not sure how they got there.

Change-Id: Ia684c5b7cbacbc953f3980af67dab007105258ae