Permalink
Browse files

Fix test coverage.

  • Loading branch information...
1 parent 64c8a6e commit 550121f6c0dec41d2cc4ddbfa6db37258c8bd274 @wichert wichert committed Feb 3, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 translationstring/tests/test__init__.py
View
6 translationstring/tests/test__init__.py
@@ -65,6 +65,12 @@ def test_format_extend_existing_mapping(self):
# Make sure original is not changed
self.assertEqual(inst.mapping, {'one': '1', 'two': '3'})
+ def test_format_required_dict_argument(self):
+ import operator
+ inst = self._makeOne('msgid', domain='domain', default='default')
+ self.assertRaises(ValueError, operator.mod, inst, ('foo',))
+
+
def test_interpolate_substitution(self):
mapping = {"name": "Zope", "version": 3}
inst = self._makeOne('This is $name version ${version}.',

0 comments on commit 550121f

Please sign in to comment.