'Test the resource with no nested stack should need replacement.
The resource in failed state and has no nested stack,
should need update with UpdateReplace.'

def test_need_update_in_failed_state_for_nested_resource(self):

    self.parent_resource.state_set(self.parent_resource.INIT, self.parent_resource.FAILED)
    self.parent_resource._nested = None
    self.assertRaises(resource.UpdateReplace, self.parent_resource._needs_update, self.parent_resource.t, self.parent_resource.t, self.parent_resource.properties, self.parent_resource.properties, self.parent_resource)
