Rewrite some tests without one-shot functions.
Rewrite some tests without one-shot functions.

andrewleech/WeasyPrint,jasco/WeasyPrint,Kozea/WeasyPrint,andrewleech/WeasyPrint,Kozea/WeasyPrint,marclaporte/WeasyPrint,prepare/TestWeasyPrint,marclaporte/WeasyPrint,prepare/TestWeasyPrint,jasco/WeasyPrint