'If SESSION_EXPIRE_AT_BROWSER_CLOSE, do expire then.'

@override_settings(SESSION_EXPIRE_AT_BROWSER_CLOSE=True)
def test_expire_at_browser_close(self):

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