def test_mac_checkbox_button(self): factory = MacFactory() button = factory.create_button() checkbox = factory.create_checkbox() self.assertEqual( "Отрисовка чек-бокса и Отрисовка кнопки в стиле macOS", checkbox.paint_with_button(button))
def test_mac_error_checkbox_checkbox_button(self): factory = MacFactory() checkbox = factory.create_checkbox() self.assertRaises(ValueError, checkbox.paint_with_button, checkbox)
def test_mac_checkbox(self): factory = MacFactory() checkbox = factory.create_checkbox() self.assertEqual("Отрисовка чек-бокса в стиле macOS", checkbox.paint())