Esempio n. 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))
Esempio n. 2
0
 def test_mac_error_checkbox_checkbox_button(self):
     factory = MacFactory()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, checkbox)
Esempio n. 3
0
 def test_mac_checkbox(self):
     factory = MacFactory()
     checkbox = factory.create_checkbox()
     self.assertEqual("Отрисовка чек-бокса в стиле macOS", checkbox.paint())