~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to test/exif.py

  • Committer: Olivier Tilloy
  • Date: 2011-08-20 10:38:54 UTC
  • Revision ID: olivier@tilloy.net-20110820103854-ralzke0r9wswa5wv
Use getattr, setattr and delattr where possible, instead of calling the underlying (and supposedly hidden) methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# ******************************************************************************
4
4
#
5
 
# Copyright (C) 2009-2010 Olivier Tilloy <olivier@tilloy.net>
 
5
# Copyright (C) 2009-2011 Olivier Tilloy <olivier@tilloy.net>
6
6
#
7
7
# This file is part of the pyexiv2 distribution.
8
8
#
332
332
    def test_set_raw_value_invalid(self):
333
333
        tag = ExifTag('Exif.GPSInfo.GPSVersionID')
334
334
        value = '2 0 0 foo'
335
 
        self.failUnlessRaises(ValueError, tag._set_raw_value, value)
 
335
        self.failUnlessRaises(ValueError, setattr, tag, 'raw_value', value)
336
336