MCPcopy
hub / github.com/redis/redis-py / test_time

Method test_time

tests/test_cluster.py:1757–1761  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

1755 assert isinstance(slowlog_len, int)
1756
1757 def test_time(self, r):
1758 t = r.time(target_nodes=r.get_primaries()[0])
1759 assert len(t) == 2
1760 assert isinstance(t[0], int)
1761 assert isinstance(t[1], int)
1762
1763 @skip_if_server_version_lt("4.0.0")
1764 def test_memory_usage(self, r):

Callers

nothing calls this directly

Calls 2

timeMethod · 0.45
get_primariesMethod · 0.45

Tested by

no test coverage detected