Fix flake8 errors in tests

Signed-off-by: Julien Danjou <julien@danjou.info>