Fix tests in python3.

The assert_ bug in 2to3 for python 3.4 was reported by Zhang Xinlian