Ejemplo n.º 1
0
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
Ejemplo n.º 2
0
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
Ejemplo n.º 3
0
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
Ejemplo n.º 4
0
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))
Ejemplo n.º 5
0
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
Ejemplo n.º 6
0
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))
Ejemplo n.º 7
0
 def test_unpickleable(self):
     self.assertTrue(isinstance(fnpe(Unpickleable()), KeyError))
     self.assertEquals(fnpe(Impossible()), None)
Ejemplo n.º 8
0
 def test_BaseException(self):
     self.assertTrue(fnpe(Exception()) is None)
Ejemplo n.º 9
0
 def test_oldstyle(self):
     self.assertTrue(fnpe(Oldstyle()) is None)