'Tests attempting to parse an indexed source map where each section has a "url"
property - this is unsupported and should fail.'

@responses.activate
def test_failed_sourcemap_expansion(self):

    responses.add(responses.GET, 'http://example.com/unsupported.min.js', body=load_fixture('unsupported.min.js'), content_type='application/javascript;    charset=utf-8')
    responses.add(responses.GET, 'http://example.com/unsupported.sourcemap.js', body=load_fixture('unsupported.sourcemap.js'), content_type='application/json;    charset=utf-8')
    data = {'message': 'hello', 'platform': 'javascript', 'sentry.interfaces.Exception': {'values': [{'type': 'Error', 'stacktrace': {'frames': [{'abs_path': 'http://example.com/unsupported.min.js', 'filename': 'indexed.min.js', 'lineno': 1, 'colno': 39}]}}]}}
    resp = self._postWithHeader(data)
    assert resp.status_code, 200
    event = Event.objects.get()
    assert (event.data['errors'] == [{'url': u'http://example.com/unsupported.sourcemap.js', 'type': 'js_invalid_source'}])
