def get_low_level(mbid):
    """Endpoint for fetching low-level information to AcousticBrainz.

    Offset can be specified if you need to get another dataset in case there
    are duplicates.
    """
    offset = request.args.get("n")
    if offset:
        if not offset.isdigit():
            raise BadRequest("Offset must be an integer value!")
        else:
            offset = int(offset)
    else:
        offset = 0
    try:
        return Response(load_low_level(mbid, offset), content_type='application/json')
    except NoDataFoundException:
        raise NotFound
 def test_submit_low_level_data(self):
     data.submit_low_level_data(self.test_mbid, self.test_lowlevel_data)
     self.assertIsNotNone(data.load_low_level(self.test_mbid))