tests: use the pytest tmpdir fixture
The pytest tmpdir fixture provides a better developer experience as it is integrated into pytest and allows us to introspect the directories afterwards, having a configurable policy to when to cleanup data from previous runs.
Signed-off-by: Filipe Laíns lains@riseup.net