Example #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'))
Example #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'))
Example #3
0
    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')
Example #4
0
    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')
Example #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')
Example #6
0
 def tearDown(self):
     glymur.reset_option('all')
Example #7
0
 def setUp(self):
     glymur.reset_option('all')
Example #8
0
 def tearDown(self):
     warnings.resetwarnings()
     glymur.reset_option('all')
Example #9
0
 def tearDown(self):
     glymur.reset_option('all')
Example #10
0
    def tearDown(self):
        super(TestSuite, self).tearDown()

        warnings.resetwarnings()
        glymur.reset_option('all')
Example #11
0
    def setUp(self):
        super(TestSuite, self).setUp()

        # Reset printoptions for every test.
        glymur.reset_option('all')
Example #12
0
 def setUp(self):
     glymur.reset_option('all')
Example #13
0
 def test_bad_reset(self):
     """
     Verify exception when a bad option is given to reset
     """
     with self.assertRaises(KeyError):
         glymur.reset_option('blah')
Example #14
0
 def tearDown(self):
     warnings.resetwarnings()
     glymur.reset_option('all')