~ubuntu-branches/ubuntu/wily/python-imaging/wily

« back to all changes in this revision

Viewing changes to Tests/test_image_copy.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-01-31 20:49:20 UTC
  • mfrom: (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20130131204920-b5zshy6vgfvdionl
Tags: 1.1.7+1.7.8-1ubuntu1
Rewrite build dependencies to allow cross builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from tester import *
 
2
 
 
3
from PIL import Image
 
4
 
 
5
def test_copy():
 
6
    def copy(mode):
 
7
        im = lena(mode)
 
8
        out = im.copy()
 
9
        assert_equal(out.mode, mode)
 
10
        assert_equal(out.size, im.size)
 
11
    for mode in "1", "P", "L", "RGB", "I", "F":
 
12
        yield_test(copy, mode)