Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_generic.py   bodhi(Download)
import bodhi.tests.functional.base
 
from bodhi.security import remember_me
from bodhi.models import DBSession, User, Group
 
        self.assertIsNone(Group.get(u'releng', db))
 
        resp = remember_me(None, req, info)
 
        # The user should now exist, and be a member of the releng group
        req.session = {'came_from': '/'}
 
        resp = remember_me(None, req, info)
 
        user = User.get(u'lmacken', db)
 
        try:
            resp = remember_me(None, req, info)
            assert False, 'remember_me should have thrown an exception'
        except Exception: