MCPcopy Index your code
hub / github.com/webpy/webpy / assertRows

Method assertRows

tests/test_db.py:96–98  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

94 self.db.select("person", where="name=$name", vars={"name": "\xf4"})
95
96 def assertRows(self, n):
97 result = self.db.select("person")
98 self.assertEqual(len(list(result)), n)
99
100 def testCommit(self):
101 t = self.db.transaction()

Callers 3

testCommitMethod · 0.95
testRollbackMethod · 0.95

Calls 1

selectMethod · 0.80

Tested by

no test coverage detected