~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_annotate.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-13 22:23:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2186.
  • Revision ID: john@arbash-meinel.com-20061213222308-e1cf1r9zhde76l8e
Add tests for annotate with dotted revnos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        out, err = self.run_bzr_captured(['annotate', 'hello.txt'])
60
60
        self.assertEquals(err, '')
61
61
        self.assertEqualDiff(out, '''\
62
 
    1 test@us | my helicopter
63
 
    3 user@te | your helicopter
 
62
1   test@us | my helicopter
 
63
3   user@te | your helicopter
64
64
''')
65
65
 
66
66
    def test_no_mail(self):
67
67
        out, err = self.run_bzr_captured(['annotate', 'nomail.txt'])
68
68
        self.assertEquals(err, '')
69
69
        self.assertEqualDiff(out, '''\
70
 
    2 no mail | nomail
 
70
2   no mail | nomail
71
71
''')
72
72
 
73
73
    def test_annotate_cmd_revision(self):
74
74
        out, err = self.run_bzr_captured(['annotate', 'hello.txt', '-r1'])
75
75
        self.assertEquals(err, '')
76
76
        self.assertEqualDiff(out, '''\
77
 
    1 test@us | my helicopter
 
77
1   test@us | my helicopter
78
78
''')
79
79
 
80
80
    def test_annotate_cmd_revision3(self):
81
81
        out, err = self.run_bzr_captured(['annotate', 'hello.txt', '-r3'])
82
82
        self.assertEquals(err, '')
83
83
        self.assertEqualDiff(out, '''\
84
 
    1 test@us | my helicopter
85
 
    3 user@te | your helicopter
 
84
1   test@us | my helicopter
 
85
3   user@te | your helicopter
86
86
''')
87
87
 
88
88
    def test_annotate_cmd_unknown_revision(self):