From 7b542a055446f1d0da66a39a172b442a39decf09 Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Sun, 6 Aug 2017 17:08:41 -0700 Subject: [PATCH] Fix AVMT test --- .../openlp_core_lib/test_projector_pjlink_commands.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/functional/openlp_core_lib/test_projector_pjlink_commands.py b/tests/functional/openlp_core_lib/test_projector_pjlink_commands.py index 2fb8654df..19f6fbdd4 100644 --- a/tests/functional/openlp_core_lib/test_projector_pjlink_commands.py +++ b/tests/functional/openlp_core_lib/test_projector_pjlink_commands.py @@ -99,10 +99,10 @@ class TestPJLinkCommands(TestCase): # THEN: Shutter should be closed and mute should be True self.assertTrue(pjlink.shutter, 'Shutter should have been set to closed') - self.assertTrue(pjlink.mute, 'Audio should be on') + self.assertTrue(pjlink.mute, 'Audio should be off') @patch.object(pjlink_test, 'projectorUpdateIcons') - def test_projector_process_avmt_closed_unmuted(self, mock_projectorReceivedData): + def test_projector_process_avmt_shutter_closed(self, mock_projectorReceivedData): """ Test avmt status shutter closed and audio muted """ @@ -116,10 +116,10 @@ class TestPJLinkCommands(TestCase): # THEN: Shutter should be True and mute should be False self.assertTrue(pjlink.shutter, 'Shutter should have been set to closed') - self.assertFalse(pjlink.mute, 'Audio should be off') + self.assertTrue(pjlink.mute, 'Audio should not have changed') @patch.object(pjlink_test, 'projectorUpdateIcons') - def test_projector_process_avmt_open_muted(self, mock_projectorReceivedData): + def test_projector_process_avmt_audio_muted(self, mock_projectorReceivedData): """ Test avmt status shutter open and mute on """ @@ -132,7 +132,7 @@ class TestPJLinkCommands(TestCase): pjlink.process_avmt('21') # THEN: Shutter should be closed and mute should be True - self.assertFalse(pjlink.shutter, 'Shutter should have been set to closed') + self.assertTrue(pjlink.shutter, 'Shutter should not have changed') self.assertTrue(pjlink.mute, 'Audio should be off') @patch.object(pjlink_test, 'projectorUpdateIcons')