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

Method t

tests/test_db.py:196–200  ·  view source on GitHub ↗
(active)

Source from the content-addressed store, hash-verified

194
195 def testBoolean(self):
196 def t(active):
197 name = "name-%s" % active
198 self.db.insert("person", False, name=name, active=active)
199 a = self.db.select("person", where="name=$name", vars=locals())[0].active
200 self.assertEqual(a, active)
201
202 t(False)
203 t(True)

Callers 1

__call__Method · 0.80

Calls 2

insertMethod · 0.80
selectMethod · 0.80

Tested by

no test coverage detected