Beispiel #1
0
 def test_win_checkbox_button(self):
     factory = WinFactory()
     button = factory.create_button()
     checkbox = factory.create_checkbox()
     self.assertEqual(
         "Отрисовка чек-бокса и Отрисовка кнопки в стиле Windows",
         checkbox.paint_with_button(button))
Beispiel #2
0
 def test_win_textfield(self):
     factory = WinFactory()
     textfield = factory.create_textfield()
     self.assertEqual("Отрисовка текстового поля в стиле Windows",
                      textfield.paint())
Beispiel #3
0
 def test_win_error_checkbox_checkbox_button(self):
     factory = WinFactory()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, checkbox)
Beispiel #4
0
 def test_win_checkbox(self):
     factory = WinFactory()
     checkbox = factory.create_checkbox()
     self.assertEqual("Отрисовка чек-бокса в стиле Windows",
                      checkbox.paint())
Beispiel #5
0
 def test_win_button(self):
     factory = WinFactory()
     button = factory.create_button()
     self.assertEqual("Отрисовка кнопки в стиле Windows", button.paint())
Beispiel #6
0
 def test_win_window_lr(self, define_resolution):
     factory = WinFactory()
     window = factory.create_window()
     self.assertEqual(
         "Создание и отрисовка окна с разрешением 1280x1024 в стиле Windows",
         window.paint(define_resolution("platform")))
Beispiel #7
0
 def start(self):
     factory = WinFactory()