forked from openlp/openlp
23 lines
582 B
Python
23 lines
582 B
Python
"""
|
|
Package to test the openlp.core.lib.uistrings package.
|
|
"""
|
|
|
|
from unittest import TestCase
|
|
|
|
from openlp.core.lib import UiStrings
|
|
|
|
class TestUiStrings(TestCase):
|
|
|
|
def check_same_instance_test(self):
|
|
"""
|
|
Test if the always only one instance of the UiStrings is created.
|
|
"""
|
|
# WHEN: Create two instances of the UiStrings class.
|
|
first_instance = UiStrings()
|
|
second_instance = UiStrings()
|
|
|
|
# THEN: Check if the instances are the same.
|
|
assert first_instance is second_instance, "They should be the same instance!"
|
|
|
|
|