Skip to content

Commit

Permalink
Fix test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
wichert committed Feb 3, 2012
1 parent 64c8a6e commit 550121f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions translationstring/tests/test__init__.py
Expand Up @@ -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}.',
Expand Down

0 comments on commit 550121f

Please sign in to comment.