summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/connectiontest.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-07-16 05:16:42 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-07-16 05:16:42 +0000
commit4c8440ee71ba819c7327913870a615186ef8d386 (patch)
tree5d4d811680e1b3fd0a3393de3d49eb9cae116481 /rdiff-backup/testing/connectiontest.py
parent6efc3610e37994c38a70cf32266e1e495035fbd3 (diff)
downloadrdiff-backup-4c8440ee71ba819c7327913870a615186ef8d386.tar.gz
Various changes to 0.9.3, see CHANGELOG
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@157 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/connectiontest.py')
-rw-r--r--rdiff-backup/testing/connectiontest.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/rdiff-backup/testing/connectiontest.py b/rdiff-backup/testing/connectiontest.py
index 1deadbe..ab80256 100644
--- a/rdiff-backup/testing/connectiontest.py
+++ b/rdiff-backup/testing/connectiontest.py
@@ -168,13 +168,22 @@ class RedirectedConnectionTest(unittest.TestCase):
def testBasic(self):
"""Test basic operations with redirection"""
+ self.conna.Globals.set("tmp_val", 1)
+ self.connb.Globals.set("tmp_val", 2)
+ assert self.conna.Globals.get("tmp_val") == 1
+ assert self.connb.Globals.get("tmp_val") == 2
+
self.conna.Globals.set("tmp_connb", self.connb)
self.connb.Globals.set("tmp_conna", self.conna)
assert self.conna.Globals.get("tmp_connb") is self.connb
assert self.connb.Globals.get("tmp_conna") is self.conna
- #self.conna.Test_SetConnGlobals(self.connb, "tmp_settest", 1)
- #assert self.connb.Globals.get("tmp_settest")
+ val = self.conna.reval("Globals.get('tmp_connb').Globals.get",
+ "tmp_val")
+ assert val == 2, val
+ val = self.connb.reval("Globals.get('tmp_conna').Globals.get",
+ "tmp_val")
+ assert val == 1, val
assert self.conna.reval("Globals.get('tmp_connb').pow", 2, 3) == 8
self.conna.reval("Globals.tmp_connb.reval",