~thelinuxguy/openlp/angular-remote

« back to all changes in this revision

Viewing changes to tests/functional/openlp_plugins/presentations/test_mediaitem.py

  • Committer: Tim Bentley
  • Date: 2016-07-23 04:59:26 UTC
  • mfrom: (2661.1.20 openlp)
  • Revision ID: tim.bentley@gmail.com-20160723045926-blk46f5klxndzlia
Head

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
            self.media_item = PresentationMediaItem(None, MagicMock, MagicMock())
47
47
        self.setup_application()
48
48
 
49
 
    def build_file_mask_string_test(self):
 
49
    def test_build_file_mask_string(self):
50
50
        """
51
51
        Test the build_file_mask_string() method
52
52
        """
85
85
        self.assertIn('*.xps', self.media_item.on_new_file_masks, 'The file mask should contain the xps extension')
86
86
        self.assertIn('*.oxps', self.media_item.on_new_file_masks, 'The file mask should contain the oxps extension')
87
87
 
88
 
    def clean_up_thumbnails_test(self):
 
88
    def test_clean_up_thumbnails(self):
89
89
        """
90
90
        Test that the clean_up_thumbnails method works as expected when files exists.
91
91
        """
110
110
        #       the presentation_file's mtime.
111
111
        mocked_doc.assert_has_calls([call.get_thumbnail_path(1, True), call.presentation_deleted()], True)
112
112
 
113
 
    def clean_up_thumbnails_missing_file_test(self):
 
113
    def test_clean_up_thumbnails_missing_file(self):
114
114
        """
115
115
        Test that the clean_up_thumbnails method works as expected when file is missing.
116
116
        """