Flask has been updated in the requirements projects from OpenStack .
This has broken some test cases that were mocking the root object
Instead of mocking the root object, we address the issue by mocking only
the needed methods and attributes. This facilitates the understanding of
the unit test, and also helps people to pin-point problems right away.