'Mock function for the restoreDetail function.'

def restore_detail_request(self, *cmd, **kwargs):

    if self.test_pending:
        if (self.test_pending_count == 0):
            self.test_pending_count += 1
            return self.FAKE_RESPONSE['restore_detail']['pending']
        else:
            return self.FAKE_RESPONSE['restore_detail']['success']
    else:
        return self.response_detail
