@@ -308,34 +308,6 @@ def test_show_answer(self):
308308class SymbolicResponseTest (ResponseTest ): # pylint: disable=missing-docstring
309309 xml_factory_class = SymbolicResponseXMLFactory
310310
311- def test_grade_single_input_correct (self ):
312- problem = self .build_problem (math_display = True , expect = "2*x+3*y" )
313-
314- # Correct answers
315- correct_inputs = [
316- ('2x+3y' , textwrap .dedent ("""
317- <math xmlns="http://www.w3.org/1998/Math/MathML">
318- <mstyle displaystyle="true">
319- <mn>2</mn><mo>*</mo><mi>x</mi><mo>+</mo><mn>3</mn><mo>*</mo><mi>y</mi>
320- </mstyle></math>""" ),
321- 'snuggletex_2x+3y.xml' ),
322-
323- ('x+x+3y' , textwrap .dedent ("""
324- <math xmlns="http://www.w3.org/1998/Math/MathML">
325- <mstyle displaystyle="true">
326- <mi>x</mi><mo>+</mo><mi>x</mi><mo>+</mo><mn>3</mn><mo>*</mo><mi>y</mi>
327- </mstyle></math>""" ),
328- 'snuggletex_x+x+3y.xml' ),
329- ]
330-
331- for (input_str , input_mathml , server_fixture ) in correct_inputs :
332- print "Testing input: {0}" .format (input_str )
333- server_resp = load_fixture (server_fixture )
334- self ._assert_symbolic_grade (
335- problem , input_str , input_mathml ,
336- 'correct' , snuggletex_resp = server_resp
337- )
338-
339311 def test_grade_single_input_incorrect (self ):
340312 problem = self .build_problem (math_display = True , expect = "2*x+3*y" )
341313
@@ -352,23 +324,6 @@ def test_grade_single_input_incorrect(self):
352324 for (input_str , input_mathml ) in incorrect_inputs :
353325 self ._assert_symbolic_grade (problem , input_str , input_mathml , 'incorrect' )
354326
355- def test_complex_number_grade_correct (self ):
356- problem = self .build_problem (
357- math_display = True ,
358- expect = "[[cos(theta),i*sin(theta)],[i*sin(theta),cos(theta)]]" ,
359- options = ["matrix" , "imaginary" ]
360- )
361-
362- correct_snuggletex = load_fixture ('snuggletex_correct.html' )
363- dynamath_input = load_fixture ('dynamath_input.txt' )
364- student_response = "cos(theta)*[[1,0],[0,1]] + i*sin(theta)*[[0,1],[1,0]]"
365-
366- self ._assert_symbolic_grade (
367- problem , student_response , dynamath_input ,
368- 'correct' ,
369- snuggletex_resp = correct_snuggletex
370- )
371-
372327 def test_complex_number_grade_incorrect (self ):
373328
374329 problem = self .build_problem (math_display = True ,
0 commit comments