|
Fix a whole host of fun python issues:
- Use '<mock>.assert_called_with()' over 'assert <mock>.called_with()'
- Comment out failing TODO'd test for cephadm haproxy
- Use pyfakefs >=5.2 to fix a whole host of import errors
- Use packaging.version over pkg_resources.packaging.version
- Fix a stupid assert of a urlparse error message (exception messages
aren't stable, lads)
- Use assertRegex over assertRegexpMatches with unittest mocks
Also note that the test suite *still* fails even after these, as
seemingly the dashboard is completely broken by some PyO3 package, but
at least nothing there is expected to work
|