

def test_check_migration(self):
    with mock.patch.object(cli, 'validate_head_files') as validate:
        validate._main_test_helper(['prog', 'check_migration'], 'branches')
        self.assertEqual(len(self.projects), validate.call_count)

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/db/test_migration.py TestCli.test_check_migration/VarMisuse@26/36 `self`->`validate`