Example #1
0
 def test_mac_checkbox_button(self):
     factory = MacFactory()
     button = factory.create_button()
     checkbox = factory.create_checkbox()
     self.assertEqual(
         "Отрисовка чек-бокса и Отрисовка кнопки в стиле macOS",
         checkbox.paint_with_button(button))
Example #2
0
 def test_mac_button(self):
     factory = MacFactory()
     button = factory.create_button()
     self.assertEqual("Отрисовка кнопки в стиле macOS", button.paint())
Example #3
0
 def test_mac_window_lr(self, define_resolution):
     factory = MacFactory()
     window = factory.create_window()
     self.assertEqual(
         "Создание и отрисовка окна с разрешением 1280x1024 в стиле macOS",
         window.paint(define_resolution("platform")))
Example #4
0
 def test_mac_textfield(self):
     factory = MacFactory()
     textfield = factory.create_textfield()
     self.assertEqual("Отрисовка текстового поля в стиле macOS",
                      textfield.paint())
Example #5
0
 def test_mac_error_checkbox_checkbox_button(self):
     factory = MacFactory()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, checkbox)
Example #6
0
 def test_mac_checkbox(self):
     factory = MacFactory()
     checkbox = factory.create_checkbox()
     self.assertEqual("Отрисовка чек-бокса в стиле macOS", checkbox.paint())