Skip to content

Commit

Permalink
Cevennes2.jp2 is RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 16, 2014
1 parent 3861930 commit b99a731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/test_file_jpeg2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,28 +125,28 @@ def test_layers():
def test_rgb():
# Arrange
j2k = Image.open('Tests/images/Bretagne1.j2k')
jp2 = Image.open('Tests/images/Cevennes2.jp2')

# Act
j2k.load()
jp2.load()

# Assert
assert_equal(j2k.mode, 'RGB')
assert_equal(jp2.mode, 'RGB')


def test_rgba():
# Arrange
j2k = Image.open('Tests/images/rgb_trns_ycbc.j2k')
jp2 = Image.open('Tests/images/rgb_trns_ycbc.jp2')
jp2_2 = Image.open('Tests/images/Cevennes2.jp2')

# Act
j2k.load()
jp2.load()
jp2_2.load()

# Assert
assert_equal(j2k.mode, 'RGBA')
assert_equal(jp2.mode, 'RGBA')
assert_equal(jp2_2.mode, 'RGBA')

# End of file

0 comments on commit b99a731

Please sign in to comment.