[Python-modules-commits] [python-odf] 44/118: Fix the unit test

Wolfgang Borgert debacle at moszumanska.debian.org
Fri Oct 3 21:27:20 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 6cc2e9f3253b5289686c104fbf0b1bc0d470cc59
Author: Søren Roug <soren.roug at eea.europa.eu>
Date:   Sat Mar 7 22:51:28 2009 +0000

    Fix the unit test
---
 tests/testlengths.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/testlengths.py b/tests/testlengths.py
index 9883934..28a10da 100644
--- a/tests/testlengths.py
+++ b/tests/testlengths.py
@@ -50,8 +50,8 @@ class TestDrawElements(unittest.TestCase):
         draw.Control( control="1cm", y="0cm" )
         draw.FillImage( href="1cm", name="1cm", height="0cm" )
         draw.FillImage( href="1cm", name="1cm", width="0cm" )
-        draw.GluePoint( x="1cm", align="1cm", id="1cm", y="0cm" )
-        draw.GluePoint( y="1cm", align="1cm", id="1cm", x="0cm" )
+        draw.GluePoint( x="1cm", align="1cm", id="1cm", y="0cm", escapedirection="right" )
+        draw.GluePoint( y="1cm", align="1cm", id="1cm", x="0cm", escapedirection="right" )
         draw.Line( x2="1cm", x1="1cm", y2="1cm", y1="0cm" )
         draw.Line( y1="1cm", x1="1cm", y2="1cm", x2="0cm" )
         draw.Line( y1="1cm", x2="1cm", x1="1cm", y2="0cm" )
@@ -131,8 +131,8 @@ class TestDrawElements(unittest.TestCase):
         self.assertRaises(ValueError, draw.Control, control="1cm", y="xxx" )
         self.assertRaises(ValueError, draw.FillImage, href="1cm", name="1cm", height="xxx" )
         self.assertRaises(ValueError, draw.FillImage, href="1cm", name="1cm", width="xxx" )
-        self.assertRaises(ValueError, draw.GluePoint, x="1cm", align="1cm", id="1cm", y="xxx" )
-        self.assertRaises(ValueError, draw.GluePoint, y="1cm", align="1cm", id="1cm", x="xxx" )
+        self.assertRaises(ValueError, draw.GluePoint, x="1cm", align="1cm", id="1cm", y="xxx", escapedirection="right" )
+        self.assertRaises(ValueError, draw.GluePoint, y="1cm", align="1cm", id="1cm", x="xxx", escapedirection="right" )
         self.assertRaises(ValueError, draw.Line, x2="1cm", x1="1cm", y2="1cm", y1="xxx" )
         self.assertRaises(ValueError, draw.Line, y1="1cm", x1="1cm", y2="1cm", x2="xxx" )
         self.assertRaises(ValueError, draw.Line, y1="1cm", x2="1cm", x1="1cm", y2="xxx" )

-- 
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