'Browser JS will often throw errors (from inlined code in an HTML page)
which contain only a single frame, no function name, and have the HTML
document as the filename.
In this case the hash is often not usable as the context cannot be
trusted and the URL is dynamic.'

def test_get_hash_excludes_single_frame_urls(self):

    interface = Stacktrace.to_python({'frames': [{'context_line': 'hello    world', 'abs_path': 'http://foo.com/bar/', 'lineno': 107, 'filename': '/bar/', 'module': '<unknown    module>'}]})
    result = interface.get_hash()
    assert (result == [])
