def test_answer_score_tag(self, mock_tag): mock = MagicMock() with mock as answer: evaluate.answer_score('this is a sentence', answer) assert not mock_tag.called
def test_answer_score(self, mock_distance): mock_distance.return_value = 20 mock = MagicMock() with mock as answer: evaluate.answer_score('this is a sentence', answer) mock_distance.assert_called()