

@mock.patch.object(cli, '_validate_revision')
@mock.patch('alembic.script.ScriptDirectory.walk_revisions')
def test_validate_revisions_walks_thru_all_revisions(self, walk_mock, validate_mock):
    revisions = [FakeRevision() for i in range(10)]
    walk_mock.return_value = revisions
    cli.validate_revisions(self.configs[0])
    validate_mock.assert_has_calls([mock.call(mock.ANY, revision) for revision in revisions])

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/db/test_migration.py TestCli.test_validate_revisions_walks_thru_all_revisions/original