Markup generator tests rewritten using py.test.