Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/b/o/bodhi-HEAD/bodhi/tests/models/__init__.py   bodhi(Download)
            self.obj = self.klass(**new_attrs)
            DBSession.add(self.obj)
            DBSession.flush()
            return self.obj
        except:

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_users.py   bodhi(Download)
        user = User(name=u'bodhi')
        session.add(user)
        session.flush()
 
    def test_404(self):
    def test_list_users_by_update_alias(self):
        session = DBSession()
        update = session.query(Update).first()
        update.alias = 'some_alias'
        session.flush()

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_updates.py   bodhi(Download)
    def test_no_privs(self):
        session = DBSession()
        user = User(name=u'bodhi')
        session.add(user)
        session.flush()
        user = User(name=u'bodhi')
        session.add(user)
        session.flush()
        group = session.query(Group).filter_by(name=u'provenpackager').one()
        user.groups.append(group)
        session = DBSession()
        session.query(Update).first().date_approved = now
        session.flush()
 
        # And try again
        session = DBSession()
        session.query(Update).first().date_modified = now
        session.flush()
 
        # And try again
        session = DBSession()
        session.query(Update).first().date_pushed = now
        session.flush()
 
        # And try again

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_releases.py   bodhi(Download)
            id_prefix=u'FEDORA', dist_tag=u'f22', version='22')
        session.add(release)
        session.flush()
 
    def test_404(self):
    def test_list_releases_by_update_alias(self):
        session = DBSession()
        update = session.query(Update).first()
        update.alias = 'some_alias'
        session.flush()

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_comments.py   bodhi(Download)
        session = DBSession()
        session.query(Comment).first().timestamp = tomorrow
        session.flush()
 
        # And try again

src/b/o/bodhi-HEAD/bodhi/tests/functional/test_builds.py   bodhi(Download)
        build = Build(nvr=u'bodhi-3.0-1.fc21')
        session.add(build)
        session.flush()
 
        # Then, test pagination

src/b/o/bodhi-HEAD/bodhi/tests/functional/base.py   bodhi(Download)
        packager = Group(name=u'packager')
        session.add(packager)
        session.flush()
        user.groups.append(packager)
        release = Release(
        update.comments.append(comment)
        session.add(update)
        session.flush()
 
    def get_update(self, builds=u'bodhi-2.0-1.fc17', stable_karma=3, unstable_karma=-3):