Tests that the failing task propagates back correct exception.
(self, manager)
| 223 | |
| 224 | @flaky |
| 225 | def test_fail(self, manager): |
| 226 | """Tests that the failing task propagates back correct exception.""" |
| 227 | result = fail.delay() |
| 228 | with pytest.raises(ExpectedException): |
| 229 | result.get(timeout=5) |
| 230 | assert result.status == 'FAILURE' |
| 231 | assert result.ready() is True |
| 232 | assert result.failed() is True |
| 233 | assert result.successful() is False |
| 234 | |
| 235 | @flaky |
| 236 | def test_revoked(self, manager): |