'Setup a test case environment.
Creates a fake volume object and sets up the required API responses.'

def setUp(self):

    super(TestDeleteVolume, self).setUp()
    ctx = context.RequestContext('fake', 'fake', auth_token=True)
    self.volume = fake_volume.fake_volume_obj(ctx, **{'provider_id': fake.PROVIDER_ID})
    self.volume_name_2x_enc = urllib.parse.quote(urllib.parse.quote(self.driver._id_to_base64(self.volume.id)))
    self.HTTPS_MOCK_RESPONSES = {self.RESPONSE_MODE.Valid: {('types/Volume/instances/getByName::' + self.volume_name_2x_enc): self.volume.id, 'instances/Volume::{}/action/removeMappedSdc'.format(self.volume.provider_id): self.volume.provider_id, 'instances/Volume::{}/action/removeVolume'.format(self.volume.provider_id): self.volume.provider_id}, self.RESPONSE_MODE.BadStatus: {('types/Volume/instances/getByName::' + self.volume_name_2x_enc): mocks.MockHTTPSResponse({'errorCode': 401, 'message': 'BadStatus    Volume    Test'}, 401), 'instances/Volume::{}/action/removeVolume'.format(self.volume.provider_id): mocks.MockHTTPSResponse({'errorCode': 401, 'message': 'BadStatus    Volume    Test'}, 401)}}
