Use assertEqual in unit test, not assert statement.

Also remove unused variable.

This test is failing for me with Python 3.4 on Windows XP (32 bit),
likely due to some global warning filter issue and/or new core
warning.