From 38a6bf6824062c17b39e10dafb1cfddf91bf05fa Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Tue, 28 Jan 2014 11:01:46 -0500 Subject: [PATCH] Add set to mocked cache --- .../xmodule/modulestore/tests/test_location_mapper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/lib/xmodule/xmodule/modulestore/tests/test_location_mapper.py b/common/lib/xmodule/xmodule/modulestore/tests/test_location_mapper.py index 878d303928..90da230e76 100644 --- a/common/lib/xmodule/xmodule/modulestore/tests/test_location_mapper.py +++ b/common/lib/xmodule/xmodule/modulestore/tests/test_location_mapper.py @@ -408,3 +408,9 @@ class TrivialCache(object): mock set_many """ self.cache.update(entries) + + def set(self, key, entry): + """ + mock set + """ + self.cache[key] = entry