Move getMenusForScope to the end of the View class.
Adhering to our principle that we the methods we use for generating our menus can be usually found at the bottom of the View class.
Coverage: code coverage testing for Python
Coverage.py is a Python module that measures code coverage during test execution.
It uses the code analysis tools and tracing hooks provided in the Python standard
library to determine which lines are executable, and which have been executed.
For more information, see http://nedbatchelder.com/code/modules/coverage.html