예제 #1
0
 def test_successful(self):
     res = _AsyncResult(None, None, None, None)
     self.assertRaises(NotImplementedError, res.successful)
예제 #2
0
 def test_wait(self):
     res = _AsyncResult(None, None, None, None)
     self.assertRaises(NotImplementedError, res.wait)
예제 #3
0
 def test_ready(self):
     res = _AsyncResult(None, None, None, None)
     self.assertRaises(NotImplementedError, res.ready)
예제 #4
0
 def test_attributes(self):
     res = _AsyncResult('testapp', 'testid', 'testname', 1234.0)
     self.assertEqual('testapp', res.app)
     self.assertEqual('testid', res.correlation_id)
     self.assertEqual('testname', res.name)
     self.assertEqual(1234.0, res.timestamp)