From 97ab53e786c03453a69aeaa1cd7e4462ae37a9dd Mon Sep 17 00:00:00 2001 From: kimth Date: Fri, 24 Aug 2012 08:28:47 -0400 Subject: [PATCH] Queuekey --> Queuestate in tests --- common/lib/xmodule/xmodule/tests/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/tests/__init__.py b/common/lib/xmodule/xmodule/tests/__init__.py index 2a380bb8be..5d70056d2a 100644 --- a/common/lib/xmodule/xmodule/tests/__init__.py +++ b/common/lib/xmodule/xmodule/tests/__init__.py @@ -292,7 +292,9 @@ class CodeResponseTest(unittest.TestCase): answer_ids = sorted(test_lcp.get_question_answers().keys()) numAnswers = len(answer_ids) for i in range(numAnswers): - old_cmap.update(CorrectMap(answer_id=answer_ids[i], queuekey=1000 + i)) + queuekey = 1000 + i + queuestate = (queuekey, '') + old_cmap.update(CorrectMap(answer_id=answer_ids[i], queuestate=queuestate)) # TODO: Message format inherited from ExternalResponse #correct_score_msg = "EXACT_ANSMESSAGE" @@ -326,7 +328,7 @@ class CodeResponseTest(unittest.TestCase): new_cmap = CorrectMap() new_cmap.update(old_cmap) npoints = 1 if correctness=='correct' else 0 - new_cmap.set(answer_id=answer_ids[i], npoints=npoints, correctness=correctness, msg='MESSAGE', queuekey=None) + new_cmap.set(answer_id=answer_ids[i], npoints=npoints, correctness=correctness, msg='MESSAGE', queuestate=None) test_lcp.update_score(xserver_msgs[correctness], queuekey=1000 + i) self.assertEquals(test_lcp.correct_map.get_dict(), new_cmap.get_dict())