diff --git a/tests/interfaces/openlp_plugins/songs/forms/test_editsongform.py b/tests/interfaces/openlp_plugins/songs/forms/test_editsongform.py index e84079f98..3ac938608 100644 --- a/tests/interfaces/openlp_plugins/songs/forms/test_editsongform.py +++ b/tests/interfaces/openlp_plugins/songs/forms/test_editsongform.py @@ -34,6 +34,7 @@ from unittest import TestCase from PyQt4 import QtGui from openlp.core.common import Registry +from openlp.core.common.uistrings import UiStrings from openlp.plugins.songs.forms.editsongform import EditSongForm from tests.interfaces import MagicMock from tests.helpers.testmixin import TestMixin @@ -136,3 +137,15 @@ class TestEditSongForm(TestCase, TestMixin): # THEN: The no-verse-order message should be shown. assert self.form.warning_label.text() == self.form.no_verse_order_entered_warning, \ 'The no-verse-order message should be shown.' + + def bug_1404967_test(self): + """ + Test for CCLI label showing correct text + """ + # GIVEN; Mocked methods + form = self.form + # THEN: CCLI label should be CCLI song label + self.assertNotEquals(form.ccli_label.text(), UiStrings().CCLINumberLabel, + 'CCLI label should not be "{}"'.format(UiStrings().CCLINumberLabel)) + self.assertEquals(form.ccli_label.text(), UiStrings().CCLISongNumberLabel, + 'CCLI label text should be "{}"'.format(UiStrings().CCLISongNumberLabel))