Did you create a unit test for this method? I'd like to see the test in a new test_component.py file (cms/contentstore/views/tests) instead of adding more things to the incredibly large and ill-defined test_contentstore.py (which is where the tests for the unit page are).