void () { final LinkInTrace linkInTrace = new PyTracebackParser().findLinkInTrace("File \"foo/bar.py\", line 42 failed"); Assert.assertNotNull("Failed to parse line", linkInTrace); Assert.assertEquals("Bad file name", "foo/bar.py", linkInTrace.getFileName()); Assert.assertEquals("Bad line number", 42, linkInTrace.getLineNumber()); Assert.assertEquals("Bad start pos", 6, linkInTrace.getStartPos()); Assert.assertEquals("Bad end pos", 16, linkInTrace.getEndPos()); }