[Python-modules-commits] [python-odf] 34/118: Tests allows_text

Wolfgang Borgert debacle at moszumanska.debian.org
Fri Oct 3 21:27:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to reference refs/remotes/upstream/master
in repository python-odf.

commit 329c7a194727353632bf1445d3e5965801d176b6
Author: Søren Roug <soren.roug at eea.europa.eu>
Date:   Sun Jan 4 21:21:05 2009 +0000

    Tests allows_text
---
 grammar/test_grammar.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/grammar/test_grammar.py b/grammar/test_grammar.py
index 36d8112..74a30b0 100644
--- a/grammar/test_grammar.py
+++ b/grammar/test_grammar.py
@@ -86,5 +86,15 @@ class TestAllowedChildren(unittest.TestCase):
                 for attr in atts:
                     assert attr in newatts, "Element %s:%s not in new grammar for %s:%s" % (attr + element)
 
+class TestAllowsText(unittest.TestCase):
+    def testGrammarNew(self):
+        "Testing grammarnew keys"
+        for element in grammarnew.allows_text:
+            assert element in grammar.allows_text, "%s:%s not in installed grammar" % element
+
+    def testGrammar(self):
+        for element in grammar.allows_text:
+            assert element in grammarnew.allows_text, "%s:%s not in new grammar" % element
+
 if __name__ == '__main__':
     unittest.main()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-odf.git



More information about the Python-modules-commits mailing list