summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-10-27 16:49:10 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-10-28 16:16:37 +0100
commit1f39d6e66d3a3c83cd756810fa11ac52681f60c5 (patch)
treef34511a5e3c7d25dd6ff439e969b70c26046a16c /tests
parentc02da80c845f7852451c79a18c473f883900a4c0 (diff)
downloadtelepathy-salut-1f39d6e66d3a3c83cd756810fa11ac52681f60c5.tar.gz
ft tests: add simple metadata test
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/Makefile.am1
-rw-r--r--tests/twisted/avahi/file-transfer/metadata.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index 1d8628df..8a4c1502 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -32,6 +32,7 @@ TWISTED_AVAHI_TESTS = \
avahi/file-transfer/receive-file-decline.py \
avahi/file-transfer/receive-file-ipv6.py \
avahi/file-transfer/receive-file-not-found.py \
+ avahi/file-transfer/metadata.py \
avahi/caps-self.py \
avahi/caps-tubes.py \
avahi/text-channel.py \
diff --git a/tests/twisted/avahi/file-transfer/metadata.py b/tests/twisted/avahi/file-transfer/metadata.py
new file mode 100644
index 00000000..87b59d5a
--- /dev/null
+++ b/tests/twisted/avahi/file-transfer/metadata.py
@@ -0,0 +1,18 @@
+# The 'normal' cases are tested with test-receive-file.py and test-send-file-provide-immediately.py
+# This file tests some corner cases
+import dbus
+
+from saluttest import exec_test
+from file_transfer_helper import SendFileTest
+
+import constants as cs
+
+class SendFileNoMetadata(SendFileTest):
+ # this is basically the equivalent of calling CreateChannel
+ # without these two properties
+ service_name = ''
+ metadata = {}
+
+if __name__ == '__main__':
+ test = SendFileNoMetadata()
+ exec_test(test.test)