Rev 2506: Simplify debug. in file:///v/home/vila/src/experimental/reuse.transports/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu May 31 19:15:36 BST 2007


At file:///v/home/vila/src/experimental/reuse.transports/

------------------------------------------------------------
revno: 2506
revision-id: v.ladeuil+lp at free.fr-20070531181534-7dh1f70t6x8tq2mc
parent: v.ladeuil+lp at free.fr-20070531181210-jcwx0x2t1wqathbv
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: reuse.transports
timestamp: Thu 2007-05-31 20:15:34 +0200
message:
  Simplify debug.
  
  * bzrlib/tests/test_transport_implementations.py:
  (TransportTests.test_connect_twice_is_same_content): Slightly
  changed to ease debug.
modified:
  bzrlib/tests/test_transport_implementations.py test_transport_implementations.py-20051227111451-f97c5c7d5c49fce7
-------------- next part --------------
=== modified file 'bzrlib/tests/test_transport_implementations.py'
--- a/bzrlib/tests/test_transport_implementations.py	2007-05-02 14:36:55 +0000
+++ b/bzrlib/tests/test_transport_implementations.py	2007-05-31 18:15:34 +0000
@@ -1165,7 +1165,7 @@
         # that have aliasing problems like symlinks should go in backend
         # specific test cases.
         transport = self.get_transport()
-        
+
         self.assertEqual(transport.base + 'relpath',
                          transport.abspath('relpath'))
 
@@ -1291,23 +1291,23 @@
             self.check_transport_contents(contents, t, urlutils.escape(fname))
 
     def test_connect_twice_is_same_content(self):
-        # check that our server (whatever it is) is accessable reliably
+        # check that our server (whatever it is) is accessible reliably
         # via get_transport and multiple connections share content.
         transport = self.get_transport()
         if transport.is_readonly():
             return
         transport.put_bytes('foo', 'bar')
-        transport2 = self.get_transport()
-        self.check_transport_contents('bar', transport2, 'foo')
+        transport3 = self.get_transport()
+        self.check_transport_contents('bar', transport3, 'foo')
         # its base should be usable.
-        transport2 = bzrlib.transport.get_transport(transport.base)
-        self.check_transport_contents('bar', transport2, 'foo')
+        transport4 = bzrlib.transport.get_transport(transport.base)
+        self.check_transport_contents('bar', transport4, 'foo')
 
         # now opening at a relative url should give use a sane result:
         transport.mkdir('newdir')
-        transport2 = bzrlib.transport.get_transport(transport.base + "newdir")
-        transport2 = transport2.clone('..')
-        self.check_transport_contents('bar', transport2, 'foo')
+        transport5 = bzrlib.transport.get_transport(transport.base + "newdir")
+        transport6 = transport5.clone('..')
+        self.check_transport_contents('bar', transport6, 'foo')
 
     def test_lock_write(self):
         """Test transport-level write locks.



More information about the bazaar-commits mailing list