From 87d135a40cfdc653bb58f24eb0a427a3c9294923 Mon Sep 17 00:00:00 2001 From: Usman Khalid <2200617@gmail.com> Date: Fri, 19 Sep 2014 15:57:00 +0500 Subject: [PATCH] Added tests for unparsable matlab grader response. TNL-388 --- common/lib/capa/capa/tests/test_inputtypes.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/common/lib/capa/capa/tests/test_inputtypes.py b/common/lib/capa/capa/tests/test_inputtypes.py index 1982a5f926..8d02edd4e8 100644 --- a/common/lib/capa/capa/tests/test_inputtypes.py +++ b/common/lib/capa/capa/tests/test_inputtypes.py @@ -26,6 +26,7 @@ import xml.sax.saxutils as saxutils from . import test_capa_system from capa import inputtypes +from capa.checker import DemoSystem from mock import ANY, patch from pyparsing import ParseException @@ -727,6 +728,34 @@ class MatlabTest(unittest.TestCase): received = fromstring(context['queue_msg']) html_tree_equal(received, expected) + def test_rendering_with_invalid_queue_msg(self): + self.the_input.queue_msg = (u"