Replace deprecated unittest methods. Pep8.
Pep8.