def test_functional(self): x = XMLegant() x.media('type', 'documentary') \ .media \ .movie.title('PHP2: More Parser Stories') \ .plot('This is all about the people who make it work.') \ .characters() \ .character() \ .name('Mr. Parser') \ .actor('John Doe') \ .getParent() \ .character() \ .name('Mr. Parser2') \ .actor('John Doe2') \ .getParent() \ .getParent() \ .rating(5) """