[telepathy-gabble/master] test-location.py: use exactly-representable floats

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Aug 11 06:41:20 PDT 2009


---
 tests/twisted/test-location.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/test-location.py b/tests/twisted/test-location.py
index ab7fc72..88e3598 100644
--- a/tests/twisted/test-location.py
+++ b/tests/twisted/test-location.py
@@ -145,8 +145,8 @@ def test(q, bus, conn, stream):
     query = result.firstChildElement()
     geoloc = query.addElement((ns.GEOLOC, 'geoloc'))
     geoloc['xml:lang'] = 'en'
-    geoloc.addElement('lat', content='1.234')
-    geoloc.addElement('lon', content='5.678')
+    geoloc.addElement('lat', content='1.25')
+    geoloc.addElement('lon', content='5.5')
     geoloc.addElement('country', content='Belgium')
     geoloc.addElement('timestamp', content=date_str)
     # invalid element, will be discarded by Gabble
@@ -160,8 +160,8 @@ def test(q, bus, conn, stream):
 
     assertLength(5, location)
     assertEquals(location['language'], 'en')
-    assertEquals(location['lat'], 1.234)
-    assertEquals(location['lon'], 5.678)
+    assertEquals(location['lat'], 1.25)
+    assertEquals(location['lon'], 5.5)
     assertEquals(location['country'], 'Belgium')
     assertEquals(location['timestamp'], date)
 
-- 
1.5.6.5



More information about the telepathy-commits mailing list