From 0ed0b2148e1bf84d99b03824cf5f150694150fb8 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Sun, 27 Oct 2013 21:33:58 +0100 Subject: [PATCH] Small changes to the test --- .../test_presentationcontroller.py | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/tests/functional/openlp_plugins/presentations/test_presentationcontroller.py b/tests/functional/openlp_plugins/presentations/test_presentationcontroller.py index 97d34f4f1..61d62b473 100644 --- a/tests/functional/openlp_plugins/presentations/test_presentationcontroller.py +++ b/tests/functional/openlp_plugins/presentations/test_presentationcontroller.py @@ -36,13 +36,18 @@ from tests.functional import MagicMock class TestPresentationController(TestCase): """ - Test the mediaitem methods. + Test the PresentationController. """ - def setUp(self): - """ - Set up the components need for all tests. - """ - self.pres_controller = PresentationController(plugin=MagicMock()) - def constructor_test(self): - assert(self.pres_controller.name == "PresentationController") + """ + Test the Constructor + """ + # GIVEN: No presentation controller + controller = None + + # WHEN: The presentation controller object is created + controller = PresentationController(plugin=MagicMock()) + + # THEN: The name of the presentation controller should be correct + self.assertEqual('PresentationController', controller.name, + 'The name of the presentation controller should be correct')