'Perform list action with given params and validates result.'

def _list_by_param_value_and_assert(self, params):

    images_list = self.client.list_images(params=params)['images']
    msg = 'No    images    were    found    that    met    the    filter    criteria.'
    self.assertNotEmpty(images_list, msg)
    for image in images_list:
        for key in params:
            msg = ('Failed    to    list    images    by    %s' % key)
            self.assertEqual(params[key], image[key], msg)
