'Test different wrong detachment scenarios.'

@mock.patch.object(requests, 'request', FakeRequests)
def test_wrong_detach_params(self):

    volume1 = {'name': 'test_volume_01', 'size': 1, 'id': 101}
    volume2 = {'name': 'test_volume_02', 'size': 1, 'id': 102}
    volume3 = {'name': 'test_volume_03', 'size': 1, 'id': 103}
    connector1 = dict(initiator='test_iqn.1')
    connector2 = dict(initiator='test_iqn.2')
    connector3 = dict(initiator='test_iqn.3')
    self.driver.create_volume(volume1)
    self.driver.create_volume(volume2)
    self.driver.initialize_connection(volume1, connector1)
    self.driver.initialize_connection(volume2, connector2)
    self.assertRaises(exception.ZadaraServerNotFound, self.driver.terminate_connection, volume1, connector3)
    self.assertRaises(exception.VolumeNotFound, self.driver.terminate_connection, volume3, connector1)
    self.assertRaises(exception.FailedCmdWithDump, self.driver.terminate_connection, volume1, connector2)
