~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevprops.py

- properties are retrieved when revisions are loaded

- test for this

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
                 revprops=props,
16
16
                 allow_pointless=True,
17
17
                 rev_id='test@user-1')
 
18
        rev = b.get_revision('test@user-1')
 
19
        self.assertTrue('flavor' in rev.properties)
 
20
        self.assertEquals(rev.properties['flavor'], 'choc-mint')
 
21
        self.assertEquals(rev.properties['condiment'], 'chilli')
 
22
        self.assertEquals(sorted(rev.properties.items()),
 
23
                          [('condiment', 'chilli'),
 
24
                           ('flavor', 'choc-mint')])
 
25
 
 
26
        # TODO: try properties with newlines and indenting
 
27
 
 
28
        # TODO: property names with newlines are disallowed
18
29
 
19
30
        # TODO: Can't add non-string properties
20
31