Fix a bug in and pep8ify test_auth.py