def test_successful(self): res = _AsyncResult(None, None, None, None) self.assertRaises(NotImplementedError, res.successful)
def test_wait(self): res = _AsyncResult(None, None, None, None) self.assertRaises(NotImplementedError, res.wait)
def test_ready(self): res = _AsyncResult(None, None, None, None) self.assertRaises(NotImplementedError, res.ready)
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)