py.test learning curve

Could you suggest where a Python newbie (like me) might start learning about py.test usage in the tests directory?

I tried executing in the tests directory, first doing export PYTHONPATH='/usr/lib/python2.6:/home/randy/forge/Hatta/hatta-dev:/home/randy/forge/Hatta/hatta-dev/tests'

Then py.test >log

head log shows…

executable:   /usr/bin/python  (2.6.2-final-0)
using py lib: /usr/lib/python2.6/dist-packages/py <rev unknown>

test_hatta.py[12] FFFFFFFFF.FF
test_parser.py[1] .
.test_repo.py - FAILED TO LOAD MODULE

tail log shows…

            saved = repo.open_page(title).read()
            assert saved == text

E       @py.test.mark.xfail
        def test_save_merge_line_conflict(self, repo):
>       AttributeError: mark

[/home/randy/forge/Hatta/hatta-dev/tests/test_repo.py:56]
___
== tests finished: 3 passed, 12 failed in 1.16 seconds

Please make sure you have the python-codespeak (the "py") library at least in version 1.0 – there were considerable chanages compared to pre-release version. – Radomir Dopieralski


Thanks, that was the problem. 'sudo easy_install -U py' allows me to proceed with docs tree testing. – Randy S