mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-19 03:57:21 +00:00
17 lines
414 B
Python
17 lines
414 B
Python
import uwsgi
|
|
import unittest
|
|
|
|
class SharedareaTest(unittest.TestCase):
|
|
|
|
def test_32(self):
|
|
pos = 2L * (1024L ** 3)
|
|
uwsgi.sharedarea_write32(0, pos, 17)
|
|
self.assertEqual(uwsgi.sharedarea_read32(0, pos), 17)
|
|
|
|
def test_64(self):
|
|
pos = 2L * (1024L ** 3)
|
|
uwsgi.sharedarea_write64(0, pos, 30)
|
|
self.assertEqual(uwsgi.sharedarea_read64(0, pos), 30)
|
|
|
|
unittest.main()
|