def test_linux_textfield(self):
     factory = LinuxFactory()
     textfield = factory.create_textfield()
     self.assertEqual("Отрисовка текстового поля в стиле Linux",
                      textfield.paint())
 def test_linux_error_textfield_checkbox_button(self):
     factory = LinuxFactory()
     textfield = factory.create_textfield()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, textfield)