'Tests the result if incorrect json is received.'

@patch('edxnotes.helpers.requests.get', autospec=True)
def test_search_json_error(self, mock_get):

    mock_get.return_value.content = 'Error'
    self.assertRaises(EdxNotesParseError, helpers.get_notes, self.request, self.course)
