'This will use the IAMRole watcher, since that already has batching support.
:return:'

def test_find_deleted_batch(self):

    from security_monkey.watchers.iam.iam_role import IAMRole
    self.setup_batch_db()
    watcher = IAMRole(accounts=[self.account.name])
    watcher.current_account = (self.account, 0)
    watcher.technology = self.technology
    items = []
    for x in range(0, 5):
        mod_conf = dict(ACTIVE_CONF)
        mod_conf['name'] = 'SomeRole{}'.format(x)
        mod_conf['Arn'] = 'arn:aws:iam::012345678910:role/SomeRole{}'.format(x)
        items.append(SomeTestItem().from_slurp(mod_conf, account_name=self.account.name))
        mod_aspd = dict(ASPD)
        mod_aspd['Arn'] = 'arn:aws:iam::012345678910:role/SomeRole{}'.format(x)
        mod_aspd['RoleName'] = 'SomeRole{}'.format(x)
        watcher.total_list.append(mod_aspd)
    watcher.find_changes(items)
    watcher.find_deleted_batch({})
    assert (len(watcher.deleted_items) == 0)
    for x in range(0, 5):
        item_revision = ItemRevision.query.join((Item, (ItemRevision.id == Item.latest_revision_id))).filter((Item.arn == 'arn:aws:iam::012345678910:role/SomeRole{}'.format(x))).one()
        assert item_revision.active
        db.session.add(ItemAudit(score=10, issue='IAM    Role    has    full    admin    permissions.', notes=json.dumps(item_revision.config), item_id=item_revision.item_id))
        db.session.add(ItemAudit(score=9001, issue='Some    test    issue', notes='{}', item_id=item_revision.item_id))
    db.session.commit()
    assert (len(ItemAudit.query.all()) == (len(items) * 2))
    removed_arns = []
    removed_arns.append(watcher.total_list.pop()['Arn'])
    removed_arns.append(watcher.total_list.pop()['Arn'])
    watcher.find_deleted_batch({})
    assert (len(watcher.deleted_items) == 2)
    for arn in removed_arns:
        item_revision = ItemRevision.query.join((Item, (ItemRevision.id == Item.latest_revision_id))).filter((Item.arn == arn)).one()
        assert (not item_revision.active)
    for current_item in watcher.total_list:
        item_revision = ItemRevision.query.join((Item, (ItemRevision.id == Item.latest_revision_id))).filter((Item.arn == current_item['Arn'])).one()
        assert item_revision.active
        assert (len(ItemAudit.query.filter((ItemAudit.item_id == item_revision.item_id)).all()) == 2)
