コード例 #1
0
ファイル: test_warnings.py プロジェクト: sfrias/glymur
 def test_deprecated_set_get_parseoption(self):
     """
     Verify deprecated get_parseoptions and set_parseoptions
     """
     with self.assertWarns(DeprecationWarning):
         glymur.set_parseoptions(full_codestream=True)
     with self.assertWarns(DeprecationWarning):
         glymur.get_parseoptions()
コード例 #2
0
ファイル: test_printing.py プロジェクト: punkt2/glymur
    def setUp(self):
        self.jpxfile = glymur.data.jpxfile()
        self.jp2file = glymur.data.nemo()
        self.j2kfile = glymur.data.goodstuff()

        # Reset printoptions for every test.
        glymur.set_printoptions(short=False, xml=True, codestream=True)
        glymur.set_parseoptions(full_codestream=False)
コード例 #3
0
ファイル: test_warnings.py プロジェクト: Rhoana/glymur
 def test_deprecated_set_get_parseoption(self):
     """
     Verify deprecated get_parseoptions and set_parseoptions
     """
     with self.assertWarns(DeprecationWarning):
         glymur.set_parseoptions(full_codestream=True)
     with self.assertWarns(DeprecationWarning):
         glymur.get_parseoptions()
コード例 #4
0
ファイル: test_printing.py プロジェクト: punkt2/glymur
 def tearDown(self):
     glymur.set_parseoptions(full_codestream=False)