Update test_expires_valid_str in test_request.py

"assert cookie.expires == 1" is changed to "assert cookie.expires is not None" at line 1166.