def test_example_4(self): example = """ 0.01 01 1 10 100 Favours [WBRT plus TMZ] Favours (WBRT] """ groups, mid_scale = SPSSForestPlot._decode_footer_scale_ocr(example) self.assertEqual(groups, ("WBRT plus TMZ", "WBRT")) self.assertEqual(mid_scale, 1.0)
def test_example_1(self): example = """ enema nore gaomeenenenreennreneena genera aaa 0.01 0.4 1 10 100 Favours [Pedicle screw] Favours [Hybrid Instrumentation] """ groups, mid_scale = SPSSForestPlot._decode_footer_scale_ocr(example) self.assertEqual(groups, ("Pedicle screw", "Hybrid Instrumentation")) self.assertEqual(mid_scale, 1.0)
def test_example_3(self): example = """ NN EE — -10 5 0 5 10 Favours [Pedicle Screw] Favours [Hybrid Instrumentation] """ groups, mid_scale = SPSSForestPlot._decode_footer_scale_ocr(example) self.assertEqual(groups, ("Pedicle Screw", "Hybrid Instrumentation")) self.assertEqual(mid_scale, 0.0)