/[rdiff-backup]/rdiff-backup/rdiff_backup/SetConnections.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/SetConnections.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by bescoto, Fri Mar 21 17:48:06 2003 UTC revision 1.12.2.1 by bescoto, Sun Sep 21 16:39:50 2003 UTC
# Line 25  the related connections. Line 25  the related connections.
25    
26  """  """
27    
28  import os  import os, sys
29  from log import Log  from log import Log
30  import Globals, FilenameMapping, connection, rpath  import Globals, FilenameMapping, connection, rpath
31    
# Line 226  def test_connection(conn_number): Line 226  def test_connection(conn_number):
226          print "Testing server started by: ", __conn_remote_cmds[conn_number]          print "Testing server started by: ", __conn_remote_cmds[conn_number]
227          conn = Globals.connections[conn_number]          conn = Globals.connections[conn_number]
228          try:          try:
229                  assert conn.pow(2,3) == 8                  assert conn.Globals.get('current_time') is None
230                  assert conn.os.path.join("a", "b") == "a/b"                  assert type(conn.os.getuid()) is int
231                  version = conn.reval("lambda: Globals.version")                  version = conn.Globals.get('version')
232          except:          except:
233                  sys.stderr.write("Server tests failed\n")                  sys.stderr.write("Server tests failed\n")
234                  raise                  raise

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.12.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26