diff options
author | Vincent Driessen <vincent@3rdcloud.com> | 2012-02-07 20:59:29 +0100 |
---|---|---|
committer | Vincent Driessen <vincent@3rdcloud.com> | 2012-02-07 20:59:29 +0100 |
commit | 7fff52d99c00ad480cf01c6d7505de6be1ed1eca (patch) | |
tree | de2fe1f0532c54f134342e99591d839923d458e3 /tests/__init__.py | |
parent | fcca48a9d7525f74375e3554a0fb64ec20d06bdf (diff) | |
download | rq-7fff52d99c00ad480cf01c6d7505de6be1ed1eca.tar.gz |
Get rid of ugly custom assertion.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r-- | tests/__init__.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 3109684..b912bed 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -53,12 +53,3 @@ class RQTestCase(unittest.TestCase): testconn = conn.pop() assert testconn == cls.testconn, 'Wow, something really nasty happened to the Redis connection stack. Check your setup.' - - def assertQueueContains(self, queue, that_func): - # Do a queue scan (this is O(n), but we're in a test, so hey) - for job in queue.jobs: - if job.func == that_func: - return - self.fail('Queue %s does not contain message for function %s' % - (queue.key, that_func)) - |