From 181dab165012898cba5555dc0366b8e3652b2f12 Mon Sep 17 00:00:00 2001 From: John Evans Date: Tue, 18 Mar 2014 13:04:22 -0400 Subject: [PATCH] Fixed incorrect tests on account of #193 Probably should not have used this file as it is highly corrupt. --- glymur/test/fixtures.py | 5 +++-- glymur/test/test_opj_suite.py | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/glymur/test/fixtures.py b/glymur/test/fixtures.py index 8e8deb8..a1fa2ec 100644 --- a/glymur/test/fixtures.py +++ b/glymur/test/fixtures.py @@ -580,8 +580,9 @@ file1_xml = """XML Box (xml ) @ (36, 439) issue_182_cmap = """Component Mapping Box (cmap) @ (130, 24) Component 0 ==> palette column 0 - Component 1 ==> palette column 0 - Component 2 ==> 2""" + Component 0 ==> palette column 1 + Component 0 ==> palette column 2 + Component 0 ==> palette column 3""" issue_183_colr = """Colour Specification Box (colr) @ (62, 12) Method: restricted ICC profile diff --git a/glymur/test/test_opj_suite.py b/glymur/test/test_opj_suite.py index 28e9a0f..069884a 100644 --- a/glymur/test/test_opj_suite.py +++ b/glymur/test/test_opj_suite.py @@ -5830,9 +5830,9 @@ class TestSuiteDump(unittest.TestCase): # Jp2 Header # Component mapping box - self.assertEqual(jp2.box[3].box[3].component_index, (0, 1, 2)) - self.assertEqual(jp2.box[3].box[3].mapping_type, (1, 1, 0)) - self.assertEqual(jp2.box[3].box[3].palette_index, (0, 0, 1)) + self.assertEqual(jp2.box[3].box[3].component_index, (0, 0, 0, 0)) + self.assertEqual(jp2.box[3].box[3].mapping_type, (1, 1, 1, 1)) + self.assertEqual(jp2.box[3].box[3].palette_index, (0, 1, 2, 3)) c = jp2.box[4].main_header