/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/stats/test_blackbox.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from __future__ import absolute_import
2
 
 
3
 
from ...tests import TestCaseWithTransport
4
 
 
5
 
 
6
 
class TestBlackbox(TestCaseWithTransport):
7
 
 
8
 
    def setUp(self):
9
 
        super(TestBlackbox, self).setUp()
10
 
        wt = self.make_branch_and_tree('.')
11
 
        self.build_tree_contents([('foo.c', '#include <stdio.h>\n')])
12
 
        wt.add('foo.c')
13
 
        wt.commit(message='1', committer='Fero <fero@example.com>', rev_id=b'1')
14
 
        wt.commit(message='2', committer='Fero <fero@example.com>', rev_id=b'2')
15
 
        wt.commit(message='3', committer='Jano <jano@example.com>', rev_id=b'3')
16
 
        wt.commit(message='4', committer='Jano <jano@example.com>',
17
 
                  authors=['Vinco <vinco@example.com>'], rev_id=b'4')
18
 
        wt.commit(message='5', committer='Ferko <fero@example.com>', rev_id=b'5')
19
 
 
20
 
    def test_stats(self):
21
 
        (out, err) = self.run_bzr('stats')
22
 
        self.assertEqual(out, """\
23
 
   3 Fero <fero@example.com>
24
 
     Other names:
25
 
        2 Fero
26
 
        1 Ferko
27
 
   1 Vinco <vinco@example.com>
28
 
   1 Jano <jano@example.com>
29
 
""")
30
 
 
31
 
    def test_credits(self):
32
 
        (out, err) = self.run_bzr('credits')
33
 
        self.assertEqual(out, """\
34
 
Code:
35
 
Fero <fero@example.com>
36
 
 
37
 
""")