I think we can use unittest.skipIf. It's more explicit than if inside test body.