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()),
23
25
('flavor', 'choc-mint')])
25
27
def test_invalid_revprops(self):
26
28
"""Invalid revision properties"""
28
30
self.assertRaises(ValueError,
31
33
revprops={'what a silly property': 'fine'})
32
34
self.assertRaises(ValueError,
35
37
revprops=dict(number=13))