def METHOD_NAME(self, style):
    view = View(Item("true_or_false", style=style, editor=BooleanEditor()))
    obj = BoolModel()
    tester = UITester()
    with tester.create_ui(obj, dict(view=view)) as ui:
        # sanity check
        self.assertEqual(obj.true_or_false, False)
        checkbox = tester.find_by_name(ui, "true_or_false")
        checkbox.perform(MouseClick())
        self.assertEqual(obj.true_or_false, True)