def login_data_valid(self):
login_working = False<EOL>try:<EOL><INDENT>with self._login(requests.Session()) as sess:<EOL><INDENT>sess.get(self._logout_url)<EOL><DEDENT><DEDENT>except self.LoginError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>login_working = True<EOL><DEDENT>return login_working<EOL>
Check for working login data.