def test_userdata(objects):
 userdata_items = [item.user_data for item in ITEMS]
 assert (userdata_items == objects.user_data)

def test_userdata ( objects ) : userdata_items = [ item . user_data for item in ITEMS ] assert ( userdata_items == objects . user_data )
check if all user data has been restored to user_data .