test twisted code with pytest
