Update the Perforce unit tests to use build_client() and clean up tests.
Review Request #12509 — Created Aug. 5, 2022 and submitted
This updates the Perforce unit tests to build a
each test where it's needed, rather than in
setUp(). This is in
prepration for new tests that will need to handle client construction
This also cleans up a lot of the assertions to be less verbose and to be
We had a lot of combinations of checking instance type, key presence,
and then values, but this is far less useful (less accurate) than just
checking dictionaries for equality. We missed things because we weren't
doing these checks.
It also fixes up diff checking to compare for content and not just a
hash. This will be important for work on supporting alternative diff
All Perforce unit tests pass.
Updated to target RBTools 4.0.
Revision 2 (+470 -268)
Checks run (2 succeeded)