~andrewfenn/bzr-upload/force-option

« back to all changes in this revision

Viewing changes to tests/test_upload.py

  • Committer: Martin Albisetti
  • Date: 2008-08-02 19:14:26 UTC
  • mfrom: (50.1.1 upload)
  • Revision ID: argentina@gmail.com-20080802191426-qcbt585z8u1rdxml
Fix the way the working tree is accessed so you can upload in subdirs. bug #248529 (James Westby)

Show diffs side-by-side

added added

removed removed

Lines of Context:
424
424
        self.assertUpFileEqual('baz', 'again')
425
425
        self.assertFalse(get_upload_auto(self.tree.branch))
426
426
 
 
427
    def test_upload_from_subdir(self):
 
428
        self.make_local_branch()
 
429
        self.build_tree(['branch/foo/', 'branch/foo/bar'])
 
430
        self.tree.add(['foo/', 'foo/bar'])
 
431
        self.tree.commit("Add directory")
 
432
        self.do_full_upload(directory='branch/foo')
 
433
 
427
434
 
428
435
class TestFullUpload(tests.TestCaseWithTransport, TestUploadMixin):
429
436