Fix failures in courseware/tests/test_views.py