예제 #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))
예제 #2
0
 def test_win_error_checkbox_checkbox_button(self):
     factory = WinFactory()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, checkbox)
예제 #3
0
 def test_win_checkbox(self):
     factory = WinFactory()
     checkbox = factory.create_checkbox()
     self.assertEqual("Отрисовка чек-бокса в стиле Windows",
                      checkbox.paint())