Using capture_stdout context manager for easing tests.
Adding show-case tests for views.