correct the test authenticate function for bamboo auth
correct the test authenticate function for bamboo auth

now also checks if you get redirected to the login url,
which would signal a failed login attempt.

also fix some pep8 compliance issues.

mhellmic/bamboo-automate