From 84fe5c3360cfaf0be42abbc3e4c36e72159582bd Mon Sep 17 00:00:00 2001 From: jevans Date: Thu, 18 Jul 2013 19:45:09 -0400 Subject: [PATCH] test_wrap_jp2 wasn't testing a jp2 file. --- glymur/test/test_jp2box.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glymur/test/test_jp2box.py b/glymur/test/test_jp2box.py index deea9d3..8fa566e 100644 --- a/glymur/test/test_jp2box.py +++ b/glymur/test/test_jp2box.py @@ -471,6 +471,7 @@ class TestJp2Boxes(unittest.TestCase): def setUp(self): self.j2kfile = glymur.data.goodstuff() + self.jp2file = glymur.data.nemo() def tearDown(self): pass @@ -566,7 +567,7 @@ class TestJp2Boxes(unittest.TestCase): @unittest.skipIf(os.name == "nt", "Temporary file issue on window.") def test_wrap_jp2(self): - j2k = Jp2k(self.j2kfile) + j2k = Jp2k(self.jp2file) with tempfile.NamedTemporaryFile(suffix=".jp2") as tfile: jp2 = j2k.wrap(tfile.name) boxes = [box.box_id for box in jp2.box]