]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Updated catalog test case for last commit, flags are now tested too in the clone...
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 17 Jun 2008 21:56:50 +0000 (21:56 +0000)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 17 Jun 2008 21:56:50 +0000 (21:56 +0000)
babel/messages/tests/catalog.py

index 40159805992f8fe101d36ab9b81dc75519d05c9f..e5ceb786ff0c782630c71565d63f5f35cdb84387 100644 (file)
@@ -50,6 +50,8 @@ class MessageTestCase(unittest.TestCase):
         clone = msg.clone()
         clone.locations.append(('bar.py', 42))
         self.assertEqual(msg.locations, [('foo.py', 42)])
+        msg.flags.add('fuzzy')
+        assert not clone.fuzzy and msg.fuzzy
 
 
 class CatalogTestCase(unittest.TestCase):