'If not SESSION_EXPIRE_AT_BROWSER_CLOSE, set an expiry date.'

@override_settings(SESSION_EXPIRE_AT_BROWSER_CLOSE=False, SESSION_COOKIE_AGE=123)
def test_expire_in_a_long_time(self):

    url = reverse('users.login')
    res = self.client.post(url, {'username': self.user.username, 'password': 'testpass'})
    c = res.cookies[settings.SESSION_EXISTS_COOKIE]
    eq_(123, c['max-age'])
