~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-22 21:28:30 UTC
  • mfrom: (1185.33.32 bzr.dev)
  • Revision ID: robertc@robertcollins.net-20051122212830-885c284847f0b17b
Merge from mpool.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    def test_simple_revprops(self):
10
10
        """Simple revision properties"""
11
11
        b = Branch.initialize('.')
 
12
        b.nick = 'Nicholas'
12
13
        props = dict(flavor='choc-mint', 
13
14
                     condiment='orange\n  mint\n\tcandy')
14
15
        b.working_tree().commit(message='initial null commit', 
19
20
        self.assertTrue('flavor' in rev.properties)
20
21
        self.assertEquals(rev.properties['flavor'], 'choc-mint')
21
22
        self.assertEquals(sorted(rev.properties.items()),
22
 
                          [('condiment', 'orange\n  mint\n\tcandy'),
 
23
                          [('branch-nick', 'Nicholas'), 
 
24
                           ('condiment', 'orange\n  mint\n\tcandy'),
23
25
                           ('flavor', 'choc-mint')])
24
26
 
25
27
    def test_invalid_revprops(self):