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

Method testSession

tests/test_session.py:71–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 return web.session.Session(app, store, {"count": 0})
70
71 def testSession(self):
72 b = self.app.browser()
73 self.assertEqual(b.open("/count").read(), b"1")
74 self.assertEqual(b.open("/count").read(), b"2")
75 self.assertEqual(b.open("/count").read(), b"3")
76 b.open("/reset")
77 self.assertEqual(b.open("/count").read(), b"1")
78
79 def testParallelSessions(self):
80 b1 = self.app.browser()

Callers

nothing calls this directly

Calls 2

browserMethod · 0.80
openMethod · 0.80

Tested by

no test coverage detected