Exemplo n.º 1
0
 def test_debug_mode(self):
     """Tests that returned value is the same as Globals.DevelopmentMode."""
     from plone.api.env import debug_mode
     import Globals
     Globals.DevelopmentMode = True
     self.assertEqual(debug_mode(), True)
     Globals.DevelopmentMode = False
     self.assertEqual(debug_mode(), False)
Exemplo n.º 2
0
 def test_debug_mode(self):
     """Tests that returned value is the same as Globals.DevelopmentMode."""
     from plone.api.env import debug_mode
     import Globals
     Globals.DevelopmentMode = True
     self.assertEqual(debug_mode(), True)
     Globals.DevelopmentMode = False
     self.assertEqual(debug_mode(), False)
Exemplo n.º 3
0
 def test_debug_mode(self):
     """Tests that the retured value is the same as
     getConfiguration.debug_mode."""
     from plone.api.env import debug_mode
     from App.config import getConfiguration
     getConfiguration().debug_mode = True
     self.assertEqual(debug_mode(), True)
     getConfiguration().debug_mode = False
     self.assertEqual(debug_mode(), False)