~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevprops.py

  • Committer: Robert Collins
  • Date: 2005-11-07 20:29:51 UTC
  • mfrom: (1457.1.17)
  • Revision ID: robertc@robertcollins.net-20051107202951-6ae936c7a3e57f6f
Branch.commit() has moved to WorkingTree.commit(). (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        b = Branch.initialize('.')
12
12
        props = dict(flavor='choc-mint', 
13
13
                     condiment='orange\n  mint\n\tcandy')
14
 
        b.commit(message='initial null commit', 
 
14
        b.working_tree().commit(message='initial null commit', 
15
15
                 revprops=props,
16
16
                 allow_pointless=True,
17
17
                 rev_id='test@user-1')
26
26
        """Invalid revision properties"""
27
27
        b = Branch.initialize('.')
28
28
        self.assertRaises(ValueError,
29
 
                          b.commit, 
 
29
                          b.working_tree().commit, 
30
30
                          message='invalid',
31
31
                          revprops={'what a silly property': 'fine'})
32
32
        self.assertRaises(ValueError,
33
 
                          b.commit, 
 
33
                          b.working_tree().commit, 
34
34
                          message='invalid',
35
35
                          revprops=dict(number=13))