[Telepathy-commits] [telepathy-gabble/master] olpc-buddy-search.py: use error from constants
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Mar 25 05:18:13 PDT 2009
---
tests/twisted/olpc/olpc-buddy-search.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/olpc/olpc-buddy-search.py b/tests/twisted/olpc/olpc-buddy-search.py
index 571f93a..2b97589 100644
--- a/tests/twisted/olpc/olpc-buddy-search.py
+++ b/tests/twisted/olpc/olpc-buddy-search.py
@@ -13,6 +13,7 @@ from twisted.words.protocols.jabber.client import IQ
from util import (announce_gadget, properties_to_xml, parse_properties,
create_gadget_message, close_view)
import ns
+import constants as cs
tp_name_prefix = 'org.freedesktop.Telepathy'
olpc_name_prefix = 'org.laptop.Telepathy'
@@ -397,7 +398,7 @@ def test(q, bus, conn, stream):
})
event = q.expect('dbus-error', method='CreateChannel')
- assert event.error.get_dbus_name() == 'org.freedesktop.Telepathy.Errors.InvalidArgument'
+ assert event.error.get_dbus_name() == cs.INVALID_ARGUMENT
# test alias and properties search
props = dbus.Dictionary({'color': '#AABBCC,#001122'}, signature='sv')
--
1.5.6.5
More information about the telepathy-commits
mailing list