Ejemplo n.º 1
0
 def test_mac_textfield(self):
     factory = MacFactory()
     textfield = factory.create_textfield()
     self.assertEqual("Отрисовка текстового поля в стиле macOS",
                      textfield.paint())
Ejemplo n.º 2
0
 def test_mac_error_textfield_checkbox_button(self):
     factory = MacFactory()
     textfield = factory.create_textfield()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, textfield)