From c1d9991acb5b328deac8ca8d802286b736a9e426 Mon Sep 17 00:00:00 2001 From: suutari-olli Date: Wed, 20 Apr 2016 19:01:58 +0300 Subject: [PATCH] Noticed I had removed one test from end of the file, added it back. --- .../openlp_core_ui/test_slidecontroller.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/functional/openlp_core_ui/test_slidecontroller.py b/tests/functional/openlp_core_ui/test_slidecontroller.py index 41b3317bf..12952acb7 100644 --- a/tests/functional/openlp_core_ui/test_slidecontroller.py +++ b/tests/functional/openlp_core_ui/test_slidecontroller.py @@ -847,3 +847,18 @@ class TestLiveController(TestCase): # WHEN: the default controller is built. # THEN: The controller should not be a live controller. self.assertEqual(live_controller.is_live, True, 'The slide controller should be a live controller') + + +class TestPreviewLiveController(TestCase): + + def initial_preview_controller_test(self): + """ + Test the initial preview slide controller state. + """ + # GIVEN: A new SlideController instance. + Registry.create() + preview_controller = PreviewController(None) + + # WHEN: the default controller is built. + # THEN: The controller should not be a live controller. + self.assertEqual(preview_controller.is_live, False, 'The slide controller should be a Preview controller')