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

Method testParallelSessions

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

Source from the content-addressed store, hash-verified

77 self.assertEqual(b.open("/count").read(), b"1")
78
79 def testParallelSessions(self):
80 b1 = self.app.browser()
81 b2 = self.app.browser()
82
83 b1.open("/count")
84
85 for i in range(1, 10):
86 self.assertEqual(b1.open("/count").read(), str(i + 1).encode("utf8"))
87 self.assertEqual(b2.open("/count").read(), str(i).encode("utf8"))
88
89 def testBadSessionId(self):
90 b = self.app.browser()

Callers

nothing calls this directly

Calls 3

browserMethod · 0.80
openMethod · 0.80
encodeMethod · 0.80

Tested by

no test coverage detected