[telepathy-gabble/telepathy-gabble-0.8] test-send-file-provide-immediately: try to accept an outgoing FT
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Mon Sep 14 04:09:32 PDT 2009
---
.../test-send-file-provide-immediately.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/file-transfer/test-send-file-provide-immediately.py b/tests/twisted/file-transfer/test-send-file-provide-immediately.py
index edb2ce5..d70e224 100644
--- a/tests/twisted/file-transfer/test-send-file-provide-immediately.py
+++ b/tests/twisted/file-transfer/test-send-file-provide-immediately.py
@@ -1,8 +1,20 @@
+import dbus
import constants as cs
from file_transfer_helper import SendFileTest, exec_file_transfer_test
class SendFileTransferProvideImmediately(SendFileTest):
def provide_file(self):
+
+ # try to accept our outgoing file transfer
+ try:
+ self.ft_channel.AcceptFile(self.address_type,
+ self.access_control, self.access_control_param, self.file.offset,
+ byte_arrays=True)
+ except dbus.DBusException, e:
+ assert e.get_dbus_name() == cs.NOT_AVAILABLE
+ else:
+ assert False
+
SendFileTest.provide_file(self)
# state is still Pending as remote didn't accept the transfer yet
--
1.5.6.5
More information about the telepathy-commits
mailing list