def create_build(self, project, **kwargs):
        if 'source' not in kwargs:
            kwargs['source'] = self.create_source(project)
        if kwargs not in 'collection_id':
            kwargs['collection_id'] = uuid4()
        if 'message' not in kwargs:
            kwargs['message'] = ''

        kwargs['source_id'] = kwargs['source'].id

        kwargs.setdefault('label', 'Sample')

        build = Build(
            project_id=project.id,
            project=project,
            **kwargs
        )
        db.session.add(build)
        db.session.commit()

        return build
dataset/ETHPy150Open dropbox/changes/changes/testutils/fixtures.py/Fixtures.create_build/swapped operands of `not in`