'This will test the entry point via the find_changes() method vs. the find_changes_batch() method.
This will also use the IAMRole watcher, since that already has batching support.
:return:'

def test_find_changes_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))
    assert (len(watcher.find_changes(items)) == 5)
    assert (len(watcher.deleted_items) == 0)
    assert (len(watcher.changed_items) == 0)
    assert (len(watcher.created_items) == 5)
    watcher_2 = IAMRole(accounts=[self.account.name])
    watcher_2.current_account = (self.account, 0)
    watcher_2.technology = self.technology
    assert (len(watcher_2.find_changes(items)) == 0)
    assert (len(watcher_2.deleted_items) == 0)
    assert (len(watcher_2.changed_items) == 0)
    assert (len(watcher_2.created_items) == 0)
