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

Method test18

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

Source from the content-addressed store, hash-verified

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)
114 def test19(self):
115 s = select(s for s in Student if s.id == 4).exists()
116 self.assertEqual(s, False)

Callers

nothing calls this directly

Calls 1

getFunction · 0.85

Tested by

no test coverage detected