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

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

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