Missing files

This commit is contained in:
Tim Bentley 2012-12-08 08:50:21 +00:00
parent 5be9ba5b2c
commit 597e15a50b
2 changed files with 22 additions and 0 deletions

View File

View File

@ -0,0 +1,22 @@
"""
Package to test the openlp.core.lib package.
"""
from unittest import TestCase
from mock import MagicMock, patch
from openlp.core.lib import ServiceItem
class TestServiceItem(TestCase):
def serviceitem_basic_test(self):
"""
Test the Service Item
"""
with patch(u'openlp.core.lib.Plugin') as mocked_plugin:
#GIVEN: A new service item
service_item = ServiceItem(mocked_plugin)
#true_boolean = True
# WHEN:
# THEN: We should get back a valid service item
#assert isinstance(true_result, bool), u'The result should be a boolean'
assert service_item.is_valid is True, u'A valid Service Item'
assert service_item.missing_frames() is False, u'No frames loaded yet'