def setUp(self): self.widget = toga.Widget() self.layout = toga.Layout(self.widget)
def setUp(self): self.factory = MagicMock(spec=toga_dummy.factory) self.widget = toga.Widget(factory=self.factory) self.layout = toga.Layout(self.widget)
def test_layout__repr__with_node_None(self): layout = toga.Layout(None) self.assertEqual(layout.__repr__(), '<Layout (dirty) (NonexNone @ 0,0)>')
def setUp(self): super().setUp() self.widget = toga.Widget(factory=toga_dummy.factory) self.layout = toga.Layout(self.widget)