diff --git a/test_s3.py b/test_s3.py index 5328ad0..aa0bb17 100644 --- a/test_s3.py +++ b/test_s3.py @@ -125,8 +125,7 @@ def test_error(self): self.body.error(excp) self.wait_for_thread() - self.assertTrue(deferred.called) - self.assertIsInstance(deferred.result, Failure) + self.failureResultOf(deferred, Exception) def wait_for_thread(self): """Wait for something to call `callFromThread` and advance reactor