~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testconfig.py

Make annotate cope better with revisions committed without a valid 
email address.  (Marien Zwart)

Show diffs side-by-side

added added

removed removed

Lines of Context:
568
568
        my_config._get_location_config()._get_parser(branch_file)
569
569
        self.assertEqual('bzrlib.selftest.testconfig.post_commit',
570
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')