Make test compatible with Python 2.6.
Merge pull request #53 from mik3y/photo-content-type

Make test compatible with Python 2.6.