'Verify that list_queued() method correctly processes images.'

@mock.patch.object(glance.image_cache.client.CacheClient, 'get_queued_images')
@mock.patch.object(prettytable.PrettyTable, 'add_row')
def test_list_queued_images(self, mock_row_create, mock_images):

    mock_images.return_value = [{'image_id': '1'}, {'image_id': '2'}]
    cache_manage.list_queued(mock.Mock(), '')
    self.assertEqual(len(mock_images.return_value), mock_row_create.call_count)
