'Test replication thaw_host unexpected status.'

@mock.patch.object(volume_rpcapi.VolumeAPI, 'thaw_host')
@mock.patch.object(cinder.db, 'conditional_update')
@mock.patch.object(cinder.db, 'service_get_all')
def test_thaw_host_unexpected_status(self, mock_get_all, mock_db_update, mock_thaw):

    mock_get_all.return_value = [fake_service.fake_service_obj(self.context, binary='cinder-volume')]
    mock_db_update.return_value = None
    volume_api = cinder.volume.api.API()
    self.assertRaises(exception.InvalidInput, volume_api.thaw_host, self.context, host=CONF.host, cluster_name=None)
