Tests for embargo middleware feature

This commit is contained in:
Sarina Canelake
2014-02-24 18:09:16 -05:00
parent fe85a1eec1
commit e71bbeb1e2
15 changed files with 491 additions and 126 deletions

View File

@@ -1,12 +1,9 @@
"""Generates common contexts"""
import re
import logging
from xmodule.course_module import CourseDescriptor
from util.request import COURSE_REGEX
COURSE_REGEX = re.compile(r'^.*?/courses/(?P<course_id>[^/]+/[^/]+/[^/]+)')
log = logging.getLogger(__name__)