MCPcopy 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
140class 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
152class ControlConnectionTest(unittest.TestCase):

Callers 2

setUpMethod · 0.85
setUpMethod · 0.85

Calls

no outgoing calls

Tested by 2

setUpMethod · 0.68
setUpMethod · 0.68