[telepathy-gabble/telepathy-gabble-0.8] test-send-file-declined: try to provide the file after it has been declined
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Sep 14 04:22:56 PDT 2009
---
.../file-transfer/test-send-file-declined.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/file-transfer/test-send-file-declined.py b/tests/twisted/file-transfer/test-send-file-declined.py
index c8de2bb..a81afbf 100644
--- a/tests/twisted/file-transfer/test-send-file-declined.py
+++ b/tests/twisted/file-transfer/test-send-file-declined.py
@@ -1,3 +1,4 @@
+import dbus
import constants as cs
from file_transfer_helper import SendFileTest, exec_file_transfer_test
@@ -30,6 +31,14 @@ class SendFileDeclinedTest(SendFileTest):
# no byte has been transferred as the file was declined
assert transferred == 0
+ # try to provide the file
+ try:
+ self.provide_file()
+ except dbus.DBusException, e:
+ assert e.get_dbus_name() == cs.NOT_AVAILABLE
+ else:
+ assert False
+
# stop test
return True
--
1.5.6.5
More information about the telepathy-commits
mailing list