Made unit test compatible with Python 3.
Merge pull request #334 from kyleknap/test-fix

Made unit test compatible with Python 3.