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