Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_redislite_patch_redis_Redis(self):
redislite.patch.patch_redis_Redis()
r = redis.Redis()
self._log_redis_pid(r)
self.assertIsInstance(r.pid, int) # Should have a redislite pid
redislite.patch.unpatch_redis_Redis()
def test_redislite_patch_redis_Redis(self):
redislite.patch.patch_redis_Redis()
r = redis.Redis()
self._log_redis_pid(r)
self.assertIsInstance(r.pid, int) # Should have a redislite pid
redislite.patch.unpatch_redis_Redis()