/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-18 18:11:27 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-20090118181127-b6qe325j3rtrfcw3
Bzr has facilities for exceptions, let's use them.

* __init__.py:
(CannotUploadToWorkingTreeError): Use bzr exception facilities.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    cmd_upload,
43
43
    BzrUploader,
44
44
    get_upload_auto,
45
 
    CannotUploadToWT,
 
45
    CannotUploadToWorkingTreeError,
46
46
    )
47
47
 
48
48
 
679
679
        up_url = self.get_url(self.branch_dir)
680
680
        # Let's try to upload from the just created remote branch into the
681
681
        # branch (with has a working tree).
682
 
        self.assertRaises(CannotUploadToWT,
 
682
        self.assertRaises(CannotUploadToWorkingTreeError,
683
683
                          upload.run, up_url, directory=remote_branch_url)
684
684
 
685
685
    def test_upload_without_working_tree(self):