From be8f7684aa8144a2078169d446c1d6b17c50d9ae Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Fri, 16 Mar 2012 14:21:00 +0100 Subject: [PATCH] Fix accidentally passing unit test. --- tests/test_worker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 92f177c..2ab8019 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -38,7 +38,8 @@ class TestWorker(RQTestCase): job = Job.create(div_by_zero, 3) job.save() data = self.testconn.hget(job.key, 'data') - invalid_data = data.replace('failing_job', 'nonexisting_job') + invalid_data = data.replace('div_by_zero', 'nonexisting_job') + assert data != invalid_data self.testconn.hset(job.key, 'data', invalid_data) # We use the low-level internal function to enqueue any data (bypassing