/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Martin Pool
  • Date: 2005-07-11 03:27:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050711032743-a3a75b7f82975e7f
- Optionally raise EmptyCommit if there are no changes.  Test for this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
 
 
23
class NoChanges(InTempDir):
 
24
    def runTest(self):
 
25
        from bzrlib.errors import EmptyCommit
 
26
        
 
27
        b = Branch('.', init=True)
 
28
 
 
29
        self.build_tree(['hello.txt'])
 
30
 
 
31
        self.assertRaises(EmptyCommit,
 
32
                          b.commit,
 
33
                          'commit without adding',
 
34
                          allow_empty=False)
 
35
 
 
36
 
 
37
 
 
38
 
23
39
class ValidateRevisionId(TestBase):
24
40
    def runTest(self):
25
41
        from bzrlib.revision import validate_revision_id