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

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

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