def test_autoexpire():
	app = TestApp(application())

	## forge the session cookie ##
	SID = 'afds87asg3hasdf'
	c = SignedCookie(SECRET_KEY + SID)
	c['SID'] = SID
	c['user'] = 'foo'
	c['atime'] = timegm( gmtime() ) - 1 - SESSION_TTL
	s = 'Cookie: '+ '; '.join( m.output()[12:] for m in c.values() )
	
	response = app.get('/touch', extra_environ={'HTTP_COOKIE': s})
	
	res = str(response)
	assert re.search('SID=.*Max-Age=0', res)
	assert re.search('user=.*Max-Age=0', res)
	assert re.search('atime=.*Max-Age=0', res)
dataset/ETHPy150Open aht/suas/suas/test/test_session.py/test_autoexpire/swapped operands of `-`