def _is_cookie_present(response):
 return (response.cookies.get(settings.SESSION_COOKIE_NAME) and response.cookies[settings.SESSION_COOKIE_NAME].value)

def _is_cookie_present ( response ) : return ( response . cookies . get ( settings . SESSION_COOKIE_NAME ) and response . cookies [ settings . SESSION_COOKIE_NAME ] . value )
returns whether the session cookie is present in the response .