@pytest.mark.parametrize('i', range(len(ITEMS)))
def test_valid(objects, i):
 assert objects.history.itemAt(i).isValid()

@ pytest . mark . parametrize ( 'i' , range ( len ( ITEMS ) ) ) def test_valid ( objects , i ) : assert objects . history . itemAt ( i ) . isValid ( )
check if all items are valid .