def test_add_score_output_text(self):
     """Is the score properly handled when the cell is a markdown cell?"""
     cell = NotebookNode()
     cell.cell_type = 'markdown'
     cell.outputs = []
     self.preprocessor._add_score_output(cell, 10, 15)
     assert cell['outputs'] == []
 def test_add_score_output(self):
     """Is the score properly formatted and added to the cell outputs?"""
     cell = NotebookNode()
     cell.cell_type = 'code'
     cell.outputs = []
     self.preprocessor._add_score_output(cell, 10, 15)
     output = cell.outputs[0]
     assert output.stream == "stdout"
     assert output.output_type == "stream"
     assert output.text == "Score: 10 / 15"