~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
425
425
        locations = config.locations_config_filename()
426
426
        config.ensure_config_dir_exists()
427
427
        local_url = urlutils.local_path_to_url('branch')
428
 
        open(locations, 'wb').write('[%s]\nnickname = foobar' 
 
428
        open(locations, 'wb').write('[%s]\nnickname = foobar'
429
429
                                    % (local_url,))
430
430
        self.assertEqual('foobar', branch.nick)
431
431
 
436
436
 
437
437
        locations = config.locations_config_filename()
438
438
        config.ensure_config_dir_exists()
439
 
        open(locations, 'wb').write('[%s/branch]\nnickname = barry' 
 
439
        open(locations, 'wb').write('[%s/branch]\nnickname = barry'
440
440
                                    % (osutils.getcwd().encode('utf8'),))
441
441
        self.assertEqual('barry', branch.nick)
442
442