'This test checks filtering of images
Steps:
1) Login to Horizon dashboard as admin user
2) Go to Admin -> System -> Images
3) Use filter by Image Name
4) Check that filtered table has one image only (which name is
equal to filter value)
5) Check that no other images in the table
6) Clear filter and set nonexistent image name. Check that 0 rows
are displayed'

def test_filter_images(self):

    images_list = self.CONFIG.image.images_list
    images_page = self.images_page
    images_page.images_table.filter(images_list[0])
    self.assertTrue(images_page.is_image_present(images_list[0]))
    for image in images_list[1:]:
        self.assertFalse(images_page.is_image_present(image))
    nonexistent_image_name = '{0}_test'.format(self.IMAGE_NAME)
    images_page.images_table.filter(nonexistent_image_name)
    self.assertEqual(images_page.images_table.rows, [])
    images_page.images_table.filter('')
