/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 bzrlib/tests/test_branch.py

  • Committer: John Arbash Meinel
  • Date: 2005-12-01 19:57:43 UTC
  • mto: (1185.50.19 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1532.
  • Revision ID: john@arbash-meinel.com-20051201195743-57aefc694d237938
Reintroduced ensure_config_dir_exists() for sftp

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
        self.assertEqual(None, self.branch.get_push_location())
377
377
 
378
378
    def test_get_push_location_exact(self):
379
 
        from bzrlib.config import branches_config_filename
 
379
        from bzrlib.config import (branches_config_filename,
 
380
                                   ensure_config_dir_exists)
 
381
        ensure_config_dir_exists()
380
382
        fn = branches_config_filename()
381
 
        os.makedirs(os.path.dirname(fn))
382
383
        print >> open(fn, 'wt'), ("[%s]\n"
383
384
                                  "push_location=foo" %
384
385
                                  getcwd())
385
386
        self.assertEqual("foo", self.branch.get_push_location())
386
387
 
387
388
    def test_set_push_location(self):
388
 
        from bzrlib.config import branches_config_filename
 
389
        from bzrlib.config import (branches_config_filename,
 
390
                                   ensure_config_dir_exists)
 
391
        ensure_config_dir_exists()
389
392
        fn = branches_config_filename()
390
 
        os.makedirs(os.path.dirname(fn))
391
393
        self.branch.set_push_location('foo')
392
394
        self.assertFileEqual("[%s]\n"
393
395
                             "push_location = foo" % getcwd(),