def METHOD_NAME(self):
    view = View(Item("true_or_false", style='text'))
    obj = BoolModel()
    tester = UITester()
    with tester.create_ui(obj, dict(view=view)) as ui:
        text_field = tester.find_by_name(ui, "true_or_false")
        displayed = text_field.inspect(DisplayedText())
        # sanity check
        self.assertEqual(displayed, 'False')
        obj.true_or_false = True
        displayed = text_field.inspect(DisplayedText())
        self.assertEqual(displayed, 'True')