diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-09-01 22:55:22 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-09-01 22:55:22 +0000 |
commit | c8e248c5452923f4f4692ebe6f142d59d4172ff4 (patch) | |
tree | 3c28c5c58edba2cab0288e90f18cff810c2ae05d /py/test/Ice/adapterDeactivation/Server.py | |
parent | Added missing .depend (diff) | |
download | ice-c8e248c5452923f4f4692ebe6f142d59d4172ff4.tar.bz2 ice-c8e248c5452923f4f4692ebe6f142d59d4172ff4.tar.xz ice-c8e248c5452923f4f4692ebe6f142d59d4172ff4.zip |
global definition fixes for tests & demos cleaning up translator adding
support for dynamically loading Slice files modifying tests to
dynamically load Slice
Diffstat (limited to 'py/test/Ice/adapterDeactivation/Server.py')
-rw-r--r-- | py/test/Ice/adapterDeactivation/Server.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/py/test/Ice/adapterDeactivation/Server.py b/py/test/Ice/adapterDeactivation/Server.py index 270a2de120d..cbaa412d5ff 100644 --- a/py/test/Ice/adapterDeactivation/Server.py +++ b/py/test/Ice/adapterDeactivation/Server.py @@ -7,13 +7,16 @@ # # ********************************************************************** -import sys, Ice, Test, _Top, time +import sys, Ice, time + +Ice.loadSlice('Test.ice') +import Test def test(b): if not b: raise RuntimeError('test assertion failed') -class TestI(_Top.Test): +class TestI(Test.TestIntf): def transient(self, current=None): communicator = current.adapter.getCommunicator() adapter = communicator.createObjectAdapterWithEndpoints("TransientTestAdapter", "default -p 9999") @@ -25,7 +28,7 @@ class TestI(_Top.Test): current.adapter.deactivate() time.sleep(1) -class CookieI(_Top.Cookie): +class CookieI(Test.Cookie): def message(self): return 'blahblah' @@ -49,7 +52,7 @@ class ServantLocatorI(Ice.ServantLocator): print "finished received " + cookie.message() test(not self._deactivated) - test(isinstance(cookie, _Top.Cookie)) + test(isinstance(cookie, Test.Cookie)) test(cookie.message() == 'blahblah') def deactivate(self, category): |