Fixed incorrect tests on account of #193

Probably should not have used this file as it is highly corrupt.
This commit is contained in:
John Evans 2014-03-18 13:04:22 -04:00
commit 181dab1650
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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