MCPcopy Index your code
hub / github.com/apache/cassandra-python-driver / test_one

Method test_one

tests/unit/test_resultset.py:202–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.assertEqual(rs.was_applied, applied)
201
202 def test_one(self):
203 # no pages
204 first, second = Mock(), Mock()
205 rs = ResultSet(Mock(has_more_pages=False), [first, second])
206
207 self.assertEqual(rs.one(), first)
208
209 def test_all(self):
210 first, second = Mock(), Mock()

Callers

nothing calls this directly

Calls 2

oneMethod · 0.95
ResultSetClass · 0.90

Tested by

no test coverage detected