

@mock.patch.object(cli, '_validate_revision')
@mock.patch('alembic.script.ScriptDirectory.walk_revisions')
def test_validate_revisions_fails_on_multiple_branch_points(self, walk_mock, validate_mock):
    revisions = [FakeRevision(is_branch_point=True) for i in range(2)]
    validate_mock.return_value = revisions
    self.assertRaises(SystemExit, cli.validate_revisions, self.configs[0])

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/db/test_migration.py TestCli.test_validate_revisions_fails_on_multiple_branch_points/VarMisuse@52/85 `walk_mock`->`validate_mock`