"""
Tests for `objectifiedetree`.
"""
import pytest
from objectifiedetree import *


def test_dot_notation():
    tree = ET.fromstring('<root><a><b attr1="asdf"/></a></root>')

    assert tree.a is not None
    assert tree.a.b is not None
    assert tree.a.b.attrib['attr1'] == "asdf"

@@ -278,8 +278,51 @@
  %22asdf%22%0A
+%0A    a = tree.a%0A    assert a.b == tree.a.b%0A

test element reference