Esempio n. 1
0
 def test_safe_avatar_non_debug(self):
   f = avatar.safe_avatar(AvatarTest._raise_exception)
   settings.DEBUG = False
   self.assertEquals("", f())
Esempio n. 2
0
 def test_safe_avatar_non_debug(self):
     f = avatar.safe_avatar(AvatarTest._raise_exception)
     settings.DEBUG = False
     self.assertEquals("", f())
Esempio n. 3
0
 def test_safe_avatar_debug(self):
   f = avatar.safe_avatar(AvatarTest._raise_exception)
   self.assertEquals("FAIL", f())
Esempio n. 4
0
 def test_safe_avatar_debug(self):
     f = avatar.safe_avatar(AvatarTest._raise_exception)
     self.assertEquals("FAIL", f())