def test_high_sleep_raises_error(self, sr):
        with pytest.raises(LockError):
            self.get_lock(sr, 'foo', timeout=1, sleep=2)
If sleep is higher than timeout, it should raise an error
dataset/ETHPy150Open andymccurdy/redis-py/tests/test_lock.py/TestLock.test_high_sleep_raises_error