~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Matt Nordhoff
  • Date: 2008-02-08 19:09:45 UTC
  • mto: This revision was merged to the branch mainline in revision 3237.
  • Revision ID: mnordhoff@mattnordhoff.com-20080208190945-b4lai3ufhtt41wth
Upgrade ConfigObj to version 4.5.1.

A couple of tests had to be updated because ConfigObj now makes sure all files end in a line terminator.

Show diffs side-by-side

added added

removed removed

Lines of Context:
425
425
        self.check_file_contents(locations,
426
426
                                 '[%s/branch]\n'
427
427
                                 'push_location = http://foobar\n'
428
 
                                 'push_location:policy = norecurse'
 
428
                                 'push_location:policy = norecurse\n'
429
429
                                 % (local_path,))
430
430
 
431
431
    def test_autonick_urlencoded(self):
897
897
        self.my_config.set_user_option('foo', 'bar')
898
898
        self.assertEqual(
899
899
            self.my_config.branch.control_files.files['branch.conf'],
900
 
            'foo = bar')
 
900
            'foo = bar\n')
901
901
        self.assertEqual(self.my_config.get_user_option('foo'), 'bar')
902
902
        self.my_config.set_user_option('foo', 'baz',
903
903
                                       store=config.STORE_LOCATION)