Traceback (most recent call last):
...
GitModifierError: Neither comitter nor author
- >>> modifier.keys()
- ['name', 'email', 'date']
>>> modifier['name']
'foo'
>>> modifier['email']
>>> modifier.tz_offset
'+0000'
"""
+
+def test_dict():
+ """
+ Test C{dict} interface
+ >>> import gbp.git
+ >>> modifier = gbp.git.GitModifier('foo', 'bar', 1)
+ >>> sorted(modifier.keys())
+ ['date', 'email', 'name']
+ >>> sorted(modifier.items())
+ [('date', '1 +0000'), ('email', 'bar'), ('name', 'foo')]
+ """
+