MCPcopy
hub / github.com/ponyorm/pony / test17

Method test17

pony/orm/tests/test_query.py:108–110  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 c = count(s.scholarship for s in Student if s.scholarship > 0)
107 self.assertEqual(c, 2)
108 def test17(self):
109 s = get(s.scholarship for s in Student if s.id == 3)
110 self.assertEqual(s, 200)
111 def test18(self):
112 s = get(s.scholarship for s in Student if s.id == 4)
113 self.assertEqual(s, None)

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected