Hackebrot convert test compat

Convert `test_compat.TestWhich` to `py.test` syntax.