Mercurial > babel > old > mirror
diff babel/messages/tests/catalog.py @ 546:10de195cfb04
catalog.add() now returns the message instance (closes #245)
author | fschwarz |
---|---|
date | Sat, 19 Mar 2011 19:28:59 +0000 |
parents | e93f68837913 |
children |
line wrap: on
line diff
--- a/babel/messages/tests/catalog.py +++ b/babel/messages/tests/catalog.py @@ -57,6 +57,10 @@ class CatalogTestCase(unittest.TestCase): + def test_add_returns_message_instance(self): + cat = catalog.Catalog() + message = cat.add('foo') + self.assertEquals('foo', message.id) def test_two_messages_with_same_singular(self): cat = catalog.Catalog()