edx/edx-platform — pull request #5141 by wedaly (2014-09-09 12:53:18+00:00)
Title: Fix embargo middleware with tests

This includes the fix that @rlucioni merged to the RC yesterday (https://github.com/edx/edx-platform/commit/12d5c9b281245a1cf7fab462deaa1b09489548b0).

It adds a test case validating the fix. See the comment for a detailed explanation of why this was so hard to validate :)

Since this includes the exact same change as in the RC, I don't anticipate merge conflicts when release is merged back into master.

@rlucioni @dianakhuang please review.