~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to blackbox.py

  • Committer: Aaron Bentley
  • Date: 2006-02-01 04:28:35 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20060201042835-0ff0d7af60662f20
Fixed graph-ancestry

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from bzrlib.selftest.blackbox import ExternalBase
 
1
from bzrlib.tests.blackbox import ExternalBase
2
2
from unittest import makeSuite
3
3
import os.path
4
4
class TestBzrTools(ExternalBase):
24
24
    def test_shelve(self):
25
25
        self.runbzr('init')
26
26
        self.runbzr('commit -m uc --unchanged')
27
 
        self.runbzr('shelve -r 1 -m foo', retcode=1)
 
27
        self.runbzr('shelve -r 1 -m foo', retcode=0)
28
28
 
29
29
    def test_fetch_ghosts(self):
30
30
        self.runbzr('init')
31
 
        try:
32
 
            self.runbzr('fetch-ghosts .', retcode=1)
33
 
        except AssertionError:
34
 
            self.runbzr('fetch-ghosts .', retcode=3)
 
31
        self.runbzr('fetch-ghosts .')
35
32
 
36
33
    def test_patch(self):
37
34
        self.runbzr('init')
45
42
        self.runbzr('patch mypatch')
46
43
        assert file('myfile', 'rb').read() == 'goodbye'
47
44
 
 
45
    def test_branch_history(self):
 
46
        self.runbzr('init')
 
47
        file('myfile', 'wb').write('hello')
 
48
        self.runbzr('add')
 
49
        self.runbzr('commit -m hello')
 
50
        self.runbzr('branch-history')
 
51
 
 
52
    def test_branch_history(self):
 
53
        self.runbzr('init')
 
54
        file('myfile', 'wb').write('hello')
 
55
        self.runbzr('add')
 
56
        self.runbzr('commit -m hello')
 
57
        self.runbzr('graph-ancestry . graph.dot')
 
58
        self.runbzr('branch . my_branch')
 
59
        self.runbzr('graph-ancestry . graph.dot --merge-branch my_branch')
48
60
 
49
61
def test_suite():
50
62
    return makeSuite(TestBzrTools)