~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

MergedĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
"""
25
25
 
26
26
 
 
27
# XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
28
# Note: Please don't add new tests here, it's too big and bulky.  Instead add
 
29
# them into small suites for the particular function that's tested.
 
30
 
 
31
 
27
32
from cStringIO import StringIO
28
33
import os
29
34
import re
129
134
        self.build_tree(['hello.txt'])
130
135
        self.runbzr("commit -m empty", retcode=3)
131
136
        self.runbzr("add hello.txt")
132
 
        self.runbzr("commit -m added")
 
137
        self.runbzr("commit -m added")       
133
138
 
134
139
    def test_empty_commit_message(self):
135
140
        self.runbzr("init")
237
242
        self.runbzr('revert')
238
243
        os.chdir('..')
239
244
 
 
245
    def test_status(self):
 
246
        self.runbzr("init")
 
247
        self.build_tree(['hello.txt'])
 
248
        result = self.runbzr("status")
 
249
        self.assert_("unknown:\n  hello.txt\n" in result, result)
 
250
        self.runbzr("add hello.txt")
 
251
        result = self.runbzr("status")
 
252
        self.assert_("added:\n  hello.txt\n" in result, result)
 
253
        self.runbzr("commit -m added")
 
254
        result = self.runbzr("status -r 0..1")
 
255
        self.assert_("added:\n  hello.txt\n" in result, result)
 
256
        self.build_tree(['world.txt'])
 
257
        result = self.runbzr("status -r 0")
 
258
        self.assert_("added:\n  hello.txt\n" \
 
259
                     "unknown:\n  world.txt\n" in result, result)
240
260
 
241
261
    def test_mv_modes(self):
242
262
        """Test two modes of operation for mv"""