def METHOD_NAME(self):
    self.model.pattern_model.load_pattern(os.path.join(data_path, 'pattern_001.xy'))
    self.widget.bkg_pattern_gb.setChecked(True)
    self.widget.bkg_pattern_inspect_btn.toggle()
    self.widget.pattern_widget.set_linear_region(5, 11)
    x_min = float(str(self.widget.bkg_pattern_x_min_txt.text()))
    x_max = float(str(self.widget.bkg_pattern_x_max_txt.text()))
    self.assertAlmostEqual(x_min, 5,  delta=0.02)
    self.assertAlmostEqual(x_max, 11, delta=0.02)