

def test_failed_validation_deleted_not_deleted_from_client(self):
    beginning_d = utils.decimal_utc()
    exists = self.mox.CreateMockAnything()
    exists.instance = INSTANCE_ID_1
    launched_at = (beginning_d - (60 * 60))
    exists.launched_at = launched_at
    exists.instance_flavor_id = INSTANCE_FLAVOR_ID_1
    exists.deleted_at = beginning_d
    deployment = self.mox.CreateMockAnything()
    result.deployment().AndReturn(deployment)
    deployment.name = 'RegionOne.prod.cell1'
    rec_inst = self._fake_reconciler_instance(launched_at=launched_at)
    self.client.get_instance('RegionOne', INSTANCE_ID_1, get_metadata=True).AndReturn(rec_inst)
    self.mox.ReplayAll()
    result = self.reconciler.failed_validation(exists)
    self.assertFalse(result)
    self.mox.VerifyAll()

dataset/ETHPy150Open openstack/stacktach/tests/unit/test_reconciler.py ReconcilerTestCase.test_failed_validation_deleted_not_deleted_from_client/VarMisuse@74/120 `exists`->`result`