

@mock.patch.object(cli, '_validate_single_revision_labels')
def test__validate_revision_validates_branchless_migrations(self, validate_mock):
    script_dir = mock.Mock()
    fake_revision = FakeRevision()
    cli._validate_revision(script_dir, fake_revision)
    validate_mock.assert_called_with(script_dir, fake_revision)

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