def test_exifreader_write(self): reader = ExifReader(self.image) comapss = Fraction(1, 10) reader.theta[tag.COMPASS_ES] = comapss self.assertEqual(reader.theta[tag.COMPASS_ES], comapss) comapss = 0.5 reader.theta[tag.COMPASS_ES] = comapss self.assertEqual(reader.theta[tag.COMPASS_ES], comapss) self.assertNotEqual(reader.tobytes(), reader.img.info['exif'])
def test_exifreader_write(self): reader = ExifReader(self.image) comapss = Fraction(1, 10) reader.theta[tag.COMPASS_ES] = comapss self.assertEqual(reader.theta[tag.COMPASS_ES], comapss) comapss = 0.5 reader.theta[tag.COMPASS_ES] = comapss self.assertEqual(reader.theta[tag.COMPASS_ES], comapss) self.assertNotEqual(reader.tobytes(), reader.img.info['exif'])
def test_exifreader_tobytes(self): reader = ExifReader(self.image) self.assertEqual(reader.tobytes(), reader.img.info['exif'])
def test_exifreader_tobytes(self): reader = ExifReader(self.image) self.assertEqual(reader.tobytes(), reader.img.info['exif'])