'Tests the result if incorrect data structure is received.'

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

    mock_get.return_value.content = json.dumps({'1': 2})
    self.assertRaises(EdxNotesParseError, helpers.get_notes, self.request, self.course)
