示例#1
0
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
示例#2
0
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
示例#3
0
文件: test_base.py 项目: jokar/minion
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
示例#4
0
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))
示例#5
0
文件: test_base.py 项目: jokar/minion
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
示例#6
0
文件: test_base.py 项目: jokar/minion
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))
示例#7
0
 def test_unpickleable(self):
     self.assertTrue(isinstance(fnpe(Unpickleable()), KeyError))
     self.assertEquals(fnpe(Impossible()), None)
示例#8
0
 def test_BaseException(self):
     self.assertTrue(fnpe(Exception()) is None)
示例#9
0
 def test_oldstyle(self):
     self.assertTrue(fnpe(Oldstyle()) is None)