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

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

        # Reset printoptions for every test.
        glymur.reset_option('all')
Exemple #12
0
 def setUp(self):
     glymur.reset_option('all')
Exemple #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')
Exemple #14
0
 def tearDown(self):
     warnings.resetwarnings()
     glymur.reset_option('all')