Use py26-compatible syntax in tests.