/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.141.1 by Jelmer Vernooij
Add some simple tests for extract_fullname.
1
from bzrlib.tests import TestCase
2
from bzrlib.plugins.stats import extract_fullname
3
0.140.10 by John Arbash Meinel
Minor whitespace cleanup
4
0.141.1 by Jelmer Vernooij
Add some simple tests for extract_fullname.
5
class TestFullnameExtractor(TestCase):
6
    def test_standard(self):
7
        self.assertEquals("John Doe", 
8
            extract_fullname("John Doe <joe@example.com>"))
9
10
    def test_only_email(self):
11
        self.assertEquals("",
12
            extract_fullname("joe@example.com"))
13
14
    def test_only_fullname(self):
15
        self.assertEquals("John Doe",
16
            extract_fullname("John Doe"))
17