<commit_before>import pytest
from pageobject import PageObject
from pageobject import PageObjectList


def test_PO_registers_as_child_via_attribute_assignment():
    root_po = PageObject('')
    nested_po = PageObject('')
    root_po.nested_po = nested_po
    assert 'nested_po' in root_po.children
    assert nested_po.parent is root_po


def test_POL_registers_as_child_via_attribute_assignment():
    root_po = PageObject('')
    nested_po_list = PageObjectList('')
    root_po.nested_po_list = nested_po_list
    assert 'nested_po_list' in root_po.children
    assert nested_po_list.parent is root_po
<commit_msg>renamed pageobject tree integration test to be more specific<commit_after>import pytest
from pageobject import PageObject
from pageobject import PageObjectList


def test_PO_registers_as_child_of_another_po_via_attribute_assignment():
    root_po = PageObject('')
    nested_po = PageObject('')
    root_po.nested_po = nested_po
    assert 'nested_po' in root_po.children
    assert nested_po.parent is root_po


def test_POL_registers_as_child_of_a_po_via_attribute_assignment():
    root_po = PageObject('')
    nested_po_list = PageObjectList('')
    root_po.nested_po_list = nested_po_list
    assert 'nested_po_list' in root_po.children
    assert nested_po_list.parent is root_po

{'fraction_non_alphanumeric': 0.06293169608595549, 'fraction_numerical': 0.0, 'mean_word_length': 5.360975609756098, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7647754', 'n_tokens_mistral': 424, 'n_tokens_neox': 420, 'n_words': 92}