summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/setconnectionstest.py
diff options
context:
space:
mode:
authorben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-16 07:12:39 +0000
committerben <ben@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2002-06-16 07:12:39 +0000
commitca4ace407c938d58c7fe33cb872b0705635b39cf (patch)
treefc404794ca9ec272acaaa84fdb83433c79296596 /rdiff-backup/testing/setconnectionstest.py
parent7d34f23699cc540bd1986cb3ae62d52952ede596 (diff)
downloadrdiff-backup-ca4ace407c938d58c7fe33cb872b0705635b39cf.tar.gz
Adapted everything to new exploded format
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@130 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/setconnectionstest.py')
-rw-r--r--rdiff-backup/testing/setconnectionstest.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/rdiff-backup/testing/setconnectionstest.py b/rdiff-backup/testing/setconnectionstest.py
index d5d2671..0e862b9 100644
--- a/rdiff-backup/testing/setconnectionstest.py
+++ b/rdiff-backup/testing/setconnectionstest.py
@@ -1,6 +1,6 @@
import unittest
-execfile("commontest.py")
-rbexec("setconnections.py")
+from commontest import *
+import SetConnections
class SetConnectionsTest(unittest.TestCase):
"""Set SetConnections Class"""
@@ -18,9 +18,10 @@ class SetConnectionsTest(unittest.TestCase):
assert pfd("foobar") == (None, "foobar")
assert pfd(r"hello\::there") == (None, "hello\::there")
- self.assertRaises(SetConnectionsException, pfd, r"hello\:there::")
- self.assertRaises(SetConnectionsException, pfd, "foobar\\")
-
+ self.assertRaises(SetConnections.SetConnectionsException,
+ pfd, r"hello\:there::")
+ self.assertRaises(SetConnections.SetConnectionsException,
+ pfd, "foobar\\")
if __name__ == "__main__": unittest.main()