[telepathy-gabble/master] Test that RequestAvatar throws the correct error
Will Thompson
will.thompson at collabora.co.uk
Tue Apr 28 06:06:44 PDT 2009
---
tests/twisted/vcard/test-vcard-cache.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/vcard/test-vcard-cache.py b/tests/twisted/vcard/test-vcard-cache.py
index 7e407ea..80a37b7 100644
--- a/tests/twisted/vcard/test-vcard-cache.py
+++ b/tests/twisted/vcard/test-vcard-cache.py
@@ -5,6 +5,8 @@ Tests basic vCard caching functionality.
from servicetest import call_async, EventPattern
from gabbletest import exec_test, acknowledge_iq, sync_stream
+import constants as cs
+
def test(q, bus, conn, stream):
conn.Connect()
_, event = q.expect_many(
@@ -37,6 +39,8 @@ def test(q, bus, conn, stream):
assert r1.value[0] == ['test']
# We don't have a vCard yet
+ assert r2.error.get_dbus_name() == cs.NOT_AVAILABLE, \
+ r2.error.get_dbus_name()
assert r2.error.args[0] == 'contact vCard has no photo'
conn.Disconnect()
--
1.5.6.5
More information about the telepathy-commits
mailing list