You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
456 B
Python
21 lines
456 B
Python
import os
|
|
|
|
import unittest2 as unittest
|
|
|
|
import testlib
|
|
|
|
|
|
class NestedTest(testlib.RouterMixin, testlib.TestCase):
|
|
def test_nested(self):
|
|
context = None
|
|
for x in range(1, 11):
|
|
#print 'Connect local%d via %s' % (x, context)
|
|
context = self.router.local(via=context, name='local%d' % x)
|
|
|
|
pid = context.call(os.getpid)
|
|
self.assertIsInstance(pid, int)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|