Review: Needs Fixing

141     + assert service[u'header'][u'name'] == u'test', u'A test plugin was 
returned'
142     + assert service[u'data'][0][u'title'] == u'Image Title', u'The first 
title name matches the request'
143     + assert service[u'data'][0][u'path'] == test_image, u'The first image 
name matches'

166     + assert service[u'header'][u'name'] == u'test', u'A test plugin'
167     + assert service[u'data'][0][u'title'] == u'church.jpg', u'The first 
title name '
168     + assert service[u'data'][0][u'path'] == TEST_PATH, u'The first image 
name'
169     + assert service[u'data'][0][u'image'] == test_file, u'The first image 
name'

193     + assert service_item.get_frames()[0][u'text'] == VERSE[:-1], \
194     + u'The returned text matches the input, except the last line feed'
195     + assert service_item.get_rendered_frame(1) == VERSE.split(u'\n', 
1)[0], u'The first line has been returned'
196     + assert service_item.get_frame_title(0) == u'Slide 1', u'The title of 
the first slide is returned'
197     + assert service_item.get_frame_title(1) == u'Slide 2', u'The title of 
the second slide is returned'
198     + assert service_item.get_frame_title(2) == u'', u'The title of the 
first slide is returned'

229     + assert service_item.get_rendered_frame(0) == test_file, u'The first 
frame matches the path to the image'
230     + assert service_item.get_frames()[0] == frame_array, u'The return 
matches the frame array1'
231     + assert service_item.get_frame_path(0) == test_file, u'The frame path 
matches the full path to the image'
232     + assert service_item.get_frame_title(0) == image_name, u'The frame 
title matches the image name'
233     + assert service_item.get_display_title() == image_name, u'The display 
title matches the first image name'
234     + assert service_item.is_image() is True, u'This service item is an 
Image'
235     + assert service_item.is_capable(ItemCapabilities.CanMaintain) is True, 
u'This service item can be Maintained'
236     + assert service_item.is_capable(ItemCapabilities.CanPreview) is True, 
u'This service item can be Previewed'
237     + assert service_item.is_capable(ItemCapabilities.CanLoop) is True, 
u'This service item can be made to Loop'
238     + assert service_item.is_capable(ItemCapabilities.CanAppend) is True, \
239     + u'This service item can have new items added'

263     + assert service_item.get_rendered_frame(0) == test_file1, u'The first 
frame matches the path to the image'
264     + assert service_item.get_rendered_frame(1) == test_file2, u'The Second 
frame matches the path to the image'
265     + assert service_item.get_frames()[0] == frame_array1, u'The return 
matches the frame array1'
266     + assert service_item.get_frames()[1] == frame_array2, u'The return 
matches the frame array2'
267     + assert service_item.get_frame_path(0) == test_file1, u'The frame path 
matches the full path to the image'
268     + assert service_item.get_frame_path(1) == test_file2, u'The frame path 
matches the full path to the image'
269     + assert service_item.get_frame_title(0) == image_name1, u'The 1st 
frame title matches the image name'
270     + assert service_item.get_frame_title(1) == image_name2, u'The 2nd 
frame title matches the image name'
271     + assert service_item.get_display_title().lower() == service_item.name, 
\
272     + u'The plugin name matches the display title, as there are > 1 Images'
273     + assert service_item.is_image() is True, u'This service item is an 
image '
274     + assert service_item.is_capable(ItemCapabilities.CanMaintain) is True, 
u'This service item can be Maintained'
275     + assert service_item.is_capable(ItemCapabilities.CanPreview) is True, 
u'This service item can be Previewed'
276     + assert service_item.is_capable(ItemCapabilities.CanLoop) is True, 
u'This service item can be made to Loop'
277     + assert service_item.is_capable(ItemCapabilities.CanAppend) is True, \
278     + u'This service item can have new items added'


*SHOULD*
-- 
https://code.launchpad.net/~trb143/openlp/tests_only/+merge/148958
Your team OpenLP Core is subscribed to branch lp:openlp.

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to