

@mock.patch.object(cli, '_use_separate_migration_branches')
def test_upgrade_negative_delta_fails(self, use_mock):
    self.assert_command_fails(['prog', 'upgrade', '--delta', '-2'])

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