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