コード例 #1
0
ファイル: tests_abstract_factory.py プロジェクト: volk401/RIP
 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
ファイル: tests_abstract_factory.py プロジェクト: volk401/RIP
 def test_win_error_checkbox_checkbox_button(self):
     factory = WinFactory()
     checkbox = factory.create_checkbox()
     self.assertRaises(ValueError, checkbox.paint_with_button, checkbox)
コード例 #3
0
ファイル: tests_abstract_factory.py プロジェクト: volk401/RIP
 def test_win_checkbox(self):
     factory = WinFactory()
     checkbox = factory.create_checkbox()
     self.assertEqual("Отрисовка чек-бокса в стиле Windows",
                      checkbox.paint())