AMBARI-8827. Failure in pyhton unit tests for ambari-server (aonishuk)