/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tests/test_upload.py

  • Committer: Vincent Ladeuil
  • Date: 2009-01-17 17:09:59 UTC
  • mto: (0.152.55 trunk)
  • mto: This revision was merged to the branch mainline in revision 6649.
  • Revision ID: v.ladeuil+lp@free.fr-20090117170959-tq9aam12pgu8p7tq
Fix PEP8 violations.

* tests/test_upload.py:
(TestUploadFromRemote): Space only lnes.
(TestFullUploadFromRemote, TestIncrementalUploadFromRemote): Lines
too long, 2 empty lines between classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
589
589
        self.assertUpFileEqual('bar', 'hello')
590
590
 
591
591
class TestUploadFromRemote(TestUploadMixin):
592
 
    
 
592
 
593
593
    def do_full_upload(self, *args, **kwargs):
594
594
        up_url = self.get_transport(self.upload_dir).external_url()
595
 
        
 
595
 
596
596
        push = cmd_push()
597
597
        push._setup_outf()
598
598
        push.run(location=up_url, directory='branch')
599
 
        
 
599
 
600
600
        upload = self._get_cmd_upload()
601
601
        if kwargs.get('directory', None) is None:
602
602
            kwargs['directory'] = up_url
606
606
 
607
607
    def do_incremental_upload(self, *args, **kwargs):
608
608
        up_url = self.get_transport(self.upload_dir).external_url()
609
 
        
 
609
 
610
610
        push = cmd_push()
611
611
        push._setup_outf()
612
612
        push.run(location=up_url, directory='branch')
613
 
        
 
613
 
614
614
        upload = self._get_cmd_upload()
615
615
        if kwargs.get('directory', None) is None:
616
616
            kwargs['directory'] = up_url
631
631
 
632
632
        return get_upload_auto(self.remote_branch)
633
633
 
634
 
class TestFullUploadFromRemote(tests.TestCaseWithTransport, TestUploadFromRemote):
 
634
 
 
635
class TestFullUploadFromRemote(tests.TestCaseWithTransport,
 
636
                               TestUploadFromRemote):
635
637
 
636
638
    do_upload = TestUploadFromRemote.do_full_upload
637
639
 
638
 
class TestIncrementalUploadFromRemote(tests.TestCaseWithTransport, TestUploadFromRemote):
 
640
 
 
641
class TestIncrementalUploadFromRemote(tests.TestCaseWithTransport,
 
642
                                      TestUploadFromRemote):
639
643
 
640
644
    do_upload = TestUploadFromRemote.do_incremental_upload
641
645
 
 
646
 
642
647
class TestBranchUploadLocations(branch_implementations.TestCaseWithBranch):
643
648
 
644
649
    def test_get_upload_location_unset(self):