~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

  • Committer: Jelmer Vernooij
  • Date: 2005-10-02 13:14:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1414.
  • Revision ID: jelmer@samba.org-20051002131412-c44d6cd10336ac94
Add test for empty commit messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
from bzrlib.selftest import TestCaseInTempDir, BzrTestBase
35
35
from bzrlib.branch import Branch
 
36
from bzrlib.errors import BzrCommandError
36
37
 
37
38
 
38
39
class ExternalBase(TestCaseInTempDir):
102
103
        self.runbzr("add hello.txt")
103
104
        self.runbzr("commit -m added")
104
105
 
 
106
    def test_empty_commit_message(self):
 
107
        os.environ['BZR_EDITOR'] = 'touch' 
 
108
        self.runbzr("init")
 
109
        file('foo.c', 'wt').write('int main() {}')
 
110
        self.runbzr(['add', 'foo.c'])
 
111
        self.runbzr("commit", retcode=1) 
 
112
 
105
113
    def test_ignore_patterns(self):
106
114
        from bzrlib.branch import Branch
107
115