コード例 #1
0
 def test_reset_single_option(self):
     """
     Verify a single option can be reset.
     """
     glymur.set_option('print.codestream', True)
     glymur.reset_option('print.codestream')
     self.assertTrue(glymur.get_option('print.codestream'))
コード例 #2
0
 def test_reset_single_option(self):
     """
     Verify a single option can be reset.
     """
     glymur.set_option('print.codestream', True)
     glymur.reset_option('print.codestream')
     self.assertTrue(glymur.get_option('print.codestream'))
コード例 #3
0
ファイル: test_warnings.py プロジェクト: sfrias/glymur
    def setUp(self):
        self.jp2file = glymur.data.nemo()
        self.j2kfile = glymur.data.goodstuff()
        self.jpxfile = glymur.data.jpxfile()

        # Reset printoptions for every test.
        glymur.reset_option('all')
コード例 #4
0
ファイル: test_printing.py プロジェクト: Rhoana/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.reset_option('all')
コード例 #5
0
 def test_bad_reset(self):
     """
     Verify exception when a bad option is given to reset
     """
     with self.assertRaises(KeyError):
         glymur.reset_option('blah')
コード例 #6
0
 def tearDown(self):
     glymur.reset_option('all')
コード例 #7
0
 def setUp(self):
     glymur.reset_option('all')
コード例 #8
0
ファイル: test_warnings.py プロジェクト: sfrias/glymur
 def tearDown(self):
     warnings.resetwarnings()
     glymur.reset_option('all')
コード例 #9
0
ファイル: test_printing.py プロジェクト: Rhoana/glymur
 def tearDown(self):
     glymur.reset_option('all')
コード例 #10
0
ファイル: test_warnings.py プロジェクト: sebastic/glymur
    def tearDown(self):
        super(TestSuite, self).tearDown()

        warnings.resetwarnings()
        glymur.reset_option('all')
コード例 #11
0
ファイル: test_warnings.py プロジェクト: sebastic/glymur
    def setUp(self):
        super(TestSuite, self).setUp()

        # Reset printoptions for every test.
        glymur.reset_option('all')
コード例 #12
0
 def setUp(self):
     glymur.reset_option('all')
コード例 #13
0
ファイル: test_config.py プロジェクト: quintusdias/glymur
 def test_bad_reset(self):
     """
     Verify exception when a bad option is given to reset
     """
     with self.assertRaises(KeyError):
         glymur.reset_option('blah')
コード例 #14
0
ファイル: test_warnings.py プロジェクト: Rhoana/glymur
 def tearDown(self):
     warnings.resetwarnings()
     glymur.reset_option('all')