

def test_itervalues(self):
    self.session['x'] = 1
    self.session.modified = False
    self.session.accessed = False
    i = self.session.itervalues()
    self.assertTrue(hasattr(i, '__iter__'))
    self.assertTrue(self.session.accessed)
    self.assertFalse(self.session.modified)
    self.assertEqual(list(i), [1])

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/sessions/tests.py SessionTestsMixin.test_itervalues/original