Example #1
0
 def test_mp4_timestamp_without_exiftool(self):
     try:
         exiftool.ExifToolMedia.exiftool_path = '__invalid_command__'
         assert_that(
             exiftool.VideoMP4Media(resources.file_path('video-01.mp4')).timestamp(),
             instance_of(datetime))
     except Exception as e:
         raise AssertionError('Expected no exception but raised {}'.format(e))
Example #2
0
 def test_3gp_timestamp(self):
     assert_that(
         exiftool.Video3GPMedia(resources.file_path('video-02.3gp')).timestamp(),
         is_(datetime(2014, 2, 2, 19, 30, 0, tzinfo=tz.gettz())))
Example #3
0
 def test_tiff_timestamp(self):
     assert_that(
         exiftool.TiffPicture(resources.file_path('image-03.tif')).timestamp(),
         is_(datetime(2013, 2, 1, 3, 0, 0, tzinfo=tz.gettz())))
Example #4
0
 def test_mp4_timestamp(self):
     assert_that(
         exiftool.VideoMP4Media(resources.file_path('video-01.mp4')).timestamp(),
         is_(datetime(2014, 1, 1, 19, 30, 0, tzinfo=tz.gettz())))
Example #5
0
 def test_jpeg_timestamp(self):
     assert_that(
         exiftool.JpegPicture(resources.file_path('image-01.jpeg')).timestamp(),
         is_(datetime(2012, 5, 1, 1, 0, 0, tzinfo=tz.gettz())))