Commit 297df37f by kimth

Drop unnecessary iterator index

parent 63022831
......@@ -303,8 +303,8 @@ class CodeResponseTest(unittest.TestCase):
# CodeResponse requires internal CorrectMap state. Build it now in the unqueued state
cmap = CorrectMap()
for i in range(num_answers):
cmap.update(CorrectMap(answer_id=answer_ids[i], queuestate=None))
for answer_id in answer_ids:
cmap.update(CorrectMap(answer_id=answer_id, queuestate=None))
test_lcp.correct_map.update(cmap)
self.assertEquals(test_lcp.is_queued(), False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment