예제 #1
0
 def test_unpickleable(self):
     self.assertTrue(isinstance(fnpe(Unpickleable()), KeyError))
     self.assertEquals(fnpe(Impossible()), None)
예제 #2
0
 def test_BaseException(self):
     self.assertTrue(fnpe(Exception()) is None)
예제 #3
0
 def test_oldstyle(self):
     self.assertTrue(fnpe(Oldstyle()) is None)
예제 #4
0
파일: test_base.py 프로젝트: kmike/celery
 def test_unpickleable(self):
     self.assertIsInstance(fnpe(Unpickleable()), KeyError)
     self.assertIsNone(fnpe(Impossible()))
예제 #5
0
파일: test_base.py 프로젝트: kmike/celery
 def test_BaseException(self):
     self.assertIsNone(fnpe(Exception()))
예제 #6
0
파일: test_base.py 프로젝트: kmike/celery
 def test_oldstyle(self):
     self.assertIsNone(fnpe(Oldstyle()))