def METHOD_NAME(self):
    """Assert that associating a security bug with an Update changes the Update to security."""
    update = models.Build.query.filter_by(nvr='bodhi-2.0-1.fc17').one().update
    # The update should start out in a non-security state so we know that work_on_bugs() changed
    # it.
    assert update.type == models.UpdateType.bugfix
    bug = models.Bug.query.first()
    # Set this bug to security, so that the update gets switched to security.
    bug.security = True
    self.db.flush()
    bugs = models.Bug.query.all()
    bug_ids = [bug.bug_id for bug in bugs]
    work_on_bugs_main(update.alias, bug_ids)
    assert update.type == models.UpdateType.security