~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Mark Hammond
  • Date: 2008-08-10 11:26:50 UTC
  • mto: This revision was merged to the branch mainline in revision 3620.
  • Revision ID: mhammond@skippinet.com.au-20080810112650-ggmv29q5pj4tipxx
Fix test_set_user_setting_sets_and_saves2 on windows by stripping EOL

Show diffs side-by-side

added added

removed removed

Lines of Context:
951
951
        self.assertIs(self.my_config.get_user_option('foo'), None)
952
952
        self.my_config.set_user_option('foo', 'bar')
953
953
        self.assertEqual(
954
 
            self.my_config.branch.control_files.files['branch.conf'],
955
 
            'foo = bar\n')
 
954
            self.my_config.branch.control_files.files['branch.conf'].strip(),
 
955
            'foo = bar')
956
956
        self.assertEqual(self.my_config.get_user_option('foo'), 'bar')
957
957
        self.my_config.set_user_option('foo', 'baz',
958
958
                                       store=config.STORE_LOCATION)