Rev 31: Cosmetic change. in http://code.launchpad.net/%7Ebzr-upload-devs/bzr-upload/trunk

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Apr 25 23:26:17 BST 2008


At http://code.launchpad.net/%7Ebzr-upload-devs/bzr-upload/trunk

------------------------------------------------------------
revno: 31
revision-id: v.ladeuil+lp at free.fr-20080425222613-xmek7epzhc00fr7s
parent: v.ladeuil+lp at free.fr-20080425203909-14dle6clfs7pgqzw
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: upload
timestamp: Sat 2008-04-26 00:26:13 +0200
message:
  Cosmetic change.
  
  * test_upload.py:
  (TestFullUpload.test_full_upload_empty_tree,
  TestIncrementalUpload.test_upload_for_the_first_time_do_a_full_upload):
  No need to use a command object.
modified:
  __init__.py                    __init__.py-20080307145942-xx1xgifrreovahgz-1
  test_upload.py                 test_upload.py-20080307145942-xx1xgifrreovahgz-2
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py	2008-04-25 20:39:09 +0000
+++ b/__init__.py	2008-04-25 22:26:13 +0000
@@ -47,7 +47,6 @@
     errors,
     revisionspec,
     transport,
-    urlutils,
     workingtree,
     )
 """)

=== modified file 'test_upload.py'
--- a/test_upload.py	2008-04-06 04:24:38 +0000
+++ b/test_upload.py	2008-04-25 22:26:13 +0000
@@ -276,8 +276,7 @@
 
         self.do_full_upload()
 
-        upload = cmd_upload()
-        self.failUnlessUpFileExists(upload.bzr_upload_revid_file_name)
+        self.failUnlessUpFileExists(cmd_upload.bzr_upload_revid_file_name)
 
     def test_invalid_revspec(self):
         self.make_local_branch()
@@ -374,9 +373,11 @@
         self.do_upload()
         self.assertUpFileEqual('bar', 'hello')
 
-    def test_upload_for_the_first_time(self):
+    def test_upload_for_the_first_time_do_a_full_upload(self):
         self.make_local_branch()
         self.add_file('hello', 'bar')
+
+        self.failIfUpFileExists(cmd_upload.bzr_upload_revid_file_name)
         self.do_upload()
         self.assertUpFileEqual('bar', 'hello')
 



More information about the bazaar-commits mailing list