'Test disable_replication'

@mock.patch('cinder.volume.drivers.ibm.ibm_storage.xiv_replication.VolumeReplication.delete_replication', mock.MagicMock())
@mock.patch('cinder.volume.group_types.get_group_type_specs', mock.MagicMock(return_value=TEST_GROUP_SPECS))
def test_disable_replication(self):

    driver = mock.MagicMock()
    driver.VERSION = 'VERSION'
    p = self.proxy(self.default_storage_info, mock.MagicMock(), test_mock.cinder.exception, driver)
    p.ibm_storage_cli = mock.MagicMock()
    p._call_remote_xiv_xcli = mock.MagicMock()
    p._update_consistencygroup = mock.MagicMock()
    group = self._create_test_group('WTF')
    ret = p.disable_replication(self.ctxt, group, [])
    self.assertEqual(({'replication_status': fields.ReplicationStatus.DISABLED}, []), ret)
