def test_images_rel(provider, rel): sel.force_navigate('containers_images') ui_images = [r.name.text for r in list_tbl.rows()] for name in ui_images: obj = Image(name, provider) val = obj.get_detail('Relationships', rel) if val == '0' or val == 'Unknown image source': continue obj.click_element('Relationships', rel) try: val = int(val) assert len([r for r in list_tbl.rows()]) == val except ValueError: assert val == InfoBlock.text('Properties', 'Name')
def test_images_rel(provider, rel): """ https://bugzilla.redhat.com/show_bug.cgi?id=1365878 """ sel.force_navigate('containers_images') tb.select('List View') list_tbl_image = CheckboxTable( table_locator="//div[@id='list_grid']//table") ui_images = [r.name.text for r in list_tbl_image.rows()] for name in ui_images: obj = Image(name, provider) val = obj.get_detail('Relationships', rel) assert val != 'Unknown image source' obj.click_element('Relationships', rel) try: val = int(val) assert len([r for r in list_tbl_image.rows()]) == val except ValueError: assert val == InfoBlock.text('Properties', 'Name')