'Simple test of whether LoncapaProblem knows when it\'s been queued'

def test_is_queued(self):

    answer_ids = sorted(self.problem.get_question_answers())
    cmap = CorrectMap()
    for answer_id in answer_ids:
        cmap.update(CorrectMap(answer_id=answer_id, queuestate=None))
    self.problem.correct_map.update(cmap)
    self.assertEquals(self.problem.is_queued(), False)
    cmap = CorrectMap()
    for (i, answer_id) in enumerate(answer_ids):
        queuestate = CodeResponseTest.make_queuestate(i, datetime.now(UTC))
        cmap.update(CorrectMap(answer_id=answer_ids[i], queuestate=queuestate))
    self.problem.correct_map.update(cmap)
    self.assertEquals(self.problem.is_queued(), True)
