def test_win_textfield(self): factory = WinFactory() textfield = factory.create_textfield() self.assertEqual("Отрисовка текстового поля в стиле Windows", textfield.paint())
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)