MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / test_basic

Method test_basic

tests/unit/test_policies.py:66–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64class RoundRobinPolicyTest(unittest.TestCase):
65
66 def test_basic(self):
67 hosts = [0, 1, 2, 3]
68 policy = RoundRobinPolicy()
69 policy.populate(None, hosts)
70 qplan = list(policy.make_query_plan())
71 self.assertEqual(sorted(qplan), hosts)
72
73 def test_multiple_query_plans(self):
74 hosts = [0, 1, 2, 3]

Callers

nothing calls this directly

Calls 3

populateMethod · 0.95
make_query_planMethod · 0.95
RoundRobinPolicyClass · 0.90

Tested by

no test coverage detected