Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/cassandra-python-driver
/ FakeTime
Class
FakeTime
tests/unit/test_control_connection.py:140–149 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
138
139
140
class
FakeTime(object):
141
142
def
__init__(self):
143
self.clock = 0
144
145
def
time(self):
146
return
self.clock
147
148
def
sleep(self, amount):
149
self.clock += amount
150
151
152
class
ControlConnectionTest(unittest.TestCase):
Callers
2
setUp
Method · 0.85
setUp
Method · 0.85
Calls
no outgoing calls
Tested by
2
setUp
Method · 0.68
setUp
Method · 0.68