~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testconfig.py

  • Committer: Robert Collins
  • Date: 2005-10-11 07:21:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1443.
  • Revision ID: robertc@robertcollins.net-20051011072100-16996b55c43ff24f
move editor into the config file too

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        parser = config._get_config_parser(file=config_file)
114
114
        self.assertEqual(None,
115
115
                         config._get_user_id(parser = parser))
 
116
 
 
117
    def test_configured_edit(self):
 
118
        config_file = StringIO(sample_config_text)
 
119
        parser = config._get_config_parser(file=config_file)
 
120
        self.assertEqual("vim", config.get_editor(parser = parser))