~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testconfig.py

  • Committer: Robert Collins
  • Date: 2005-11-22 21:28:30 UTC
  • mfrom: (1185.33.32 bzr.dev)
  • Revision ID: robertc@robertcollins.net-20051122212830-885c284847f0b17b
Merge from mpool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
489
489
        self.get_location_config('/a/c')
490
490
        record = InstrumentedConfigObj("foo")
491
491
        self.my_config._parser = record
 
492
        return
 
493
        # XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
494
        # broken: creates .bazaar in the top-level directory, not 
 
495
        # inside the test directory
492
496
        self.my_config.set_user_option('foo', 'bar')
493
497
        self.assertEqual([('__contains__', '/a/c'),
494
498
                          ('__contains__', '/a/c/'),
564
568
        my_config._get_location_config()._get_parser(branch_file)
565
569
        self.assertEqual('bzrlib.selftest.testconfig.post_commit',
566
570
                         my_config.post_commit())
 
571
 
 
572
 
 
573
class TestMailAddressExtraction(TestCase):
 
574
 
 
575
    def test_extract_email_address(self):
 
576
        self.assertEqual('jane@test.com',
 
577
                         config.extract_email_address('Jane <jane@test.com>'))
 
578
        self.assertRaises(errors.BzrError,
 
579
                          config.extract_email_address, 'Jane Tester')