This starts the refactoring of the loader-mercurial tests to use pytest. Taking
the same path we did for loader-svn [1] (one test at a time).
Hopefully, at some point, we will be able to reuse those tests for D3435,
maybe?
Note: This will allow to remove the unit-test based tests scaffolding from the
loader-core (once done).
Related to T2481
[1] T2462