I think something like `unittest.skipUnless` would make this more succinct. http://docs.python.org/2/library/unittest.html#skipping-tests-and-expected-failures