~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2006-06-27 14:36:32 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060627143632-0f4114d7b0a8d7d9
Fix zap for checkouts of branches with no parents

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    def test_zap_branch(self):
81
81
        self.runbzr('init source')
82
82
        self.runbzr('checkout --lightweight source checkout')
83
 
        self.runbzr('zap --branch checkout')
84
 
        self.assertIs(False, os.path.exists('checkout'))
85
 
        self.assertIs(False, os.path.exists('source'))
 
83
        self.runbzr('zap --branch checkout', retcode=3)
 
84
        self.assertIs(True, os.path.exists('checkout'))
 
85
        self.assertIs(True, os.path.exists('source'))
 
86
        self.runbzr('branch source source2')
 
87
        self.runbzr('checkout --lightweight source2 checkout2')
 
88
        self.runbzr('zap --branch checkout2')
 
89
        self.assertIs(False, os.path.exists('checkout2'))
 
90
        self.assertIs(False, os.path.exists('source2'))
86
91
 
87
92
    def test_branches(self):
88
93
        self.runbzr('init source')