~ubuntu-branches/ubuntu/saucy/python-imaging/saucy-proposed

« back to all changes in this revision

Viewing changes to Tests/test_file_png.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-03-20 16:44:01 UTC
  • mfrom: (2.1.13 experimental)
  • Revision ID: package-import@ubuntu.com-20130320164401-ptf6m0ttg4zw72az
Tags: 1.1.7+2.0.0-1
Pillow 2.0.0 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
    assert_no_exception(lambda: im.load())
119
119
 
 
120
def test_load_transparent_p():
 
121
    file = "Tests/images/pil123p.png"
 
122
    im = Image.open(file)
 
123
 
 
124
    assert_image(im, "P", (162, 150))
 
125
    im = im.convert("RGBA")
 
126
    assert_image(im, "RGBA", (162, 150))
 
127
 
 
128
    # image has 124 uniqe qlpha values
 
129
    assert_equal(len(im.split()[3].getcolors()), 124)
 
130
 
120
131
def test_load_verify():
121
132
    # Check open/load/verify exception (@PIL150)
122
133