telepathy-gabble: make test comments TP prefix agnostic

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu Oct 3 05:11:32 PDT 2013


Module: telepathy-gabble
Branch: master
Commit: 553bef17a43d1ec01f29da3cd2e17b7a0177751f
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=553bef17a43d1ec01f29da3cd2e17b7a0177751f

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu Oct  3 12:04:50 2013 +0200

make test comments TP prefix agnostic

So the comments are TP 1.0 future proof.

---

 tests/twisted/cm/protocol.py                       |    2 +-
 .../twisted/file-transfer/file_transfer_helper.py  |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/twisted/cm/protocol.py b/tests/twisted/cm/protocol.py
index c30946a..e6367c0 100644
--- a/tests/twisted/cm/protocol.py
+++ b/tests/twisted/cm/protocol.py
@@ -39,7 +39,7 @@ def test(q, bus, conn, stream):
     assertEquals('foo at mit.edu',
         unwrap(proto_iface.NormalizeContact('foo at MIT.Edu/Telepathy')))
 
-    # org.freedesktop.Telepathy.Protocol.Interface.Presence
+    # Protocol.Interface.Presence
     expected_status = {'available': (cs.PRESENCE_AVAILABLE,     True,  True),
                        'dnd'      : (cs.PRESENCE_BUSY,          True,  True),
                        'unknown'  : (cs.PRESENCE_UNKNOWN,       False, False),
diff --git a/tests/twisted/file-transfer/file_transfer_helper.py b/tests/twisted/file-transfer/file_transfer_helper.py
index 42e1006..2115164 100644
--- a/tests/twisted/file-transfer/file_transfer_helper.py
+++ b/tests/twisted/file-transfer/file_transfer_helper.py
@@ -216,7 +216,7 @@ class ReceiveFileTest(FileTransferTest):
         path, props = channels[0]
 
         # check channel properties
-        # org.freedesktop.Telepathy.Channel D-Bus properties
+        # Channel D-Bus properties
         assert props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_FILE_TRANSFER
         assertSameSets(
             [ cs.CHANNEL_IFACE_FILE_TRANSFER_METADATA,
@@ -229,7 +229,7 @@ class ReceiveFileTest(FileTransferTest):
         assert props[cs.INITIATOR_HANDLE] == self.handle
         assert props[cs.INITIATOR_ID] == self.contact_name
 
-        # org.freedesktop.Telepathy.Channel.Type.FileTransfer D-Bus properties
+        # Channel.Type.FileTransfer D-Bus properties
         assert props[cs.FT_STATE] == cs.FT_STATE_PENDING
         assert props[cs.FT_CONTENT_TYPE] == self.file.content_type
         assert props[cs.FT_FILENAME] == self.file.name
@@ -409,7 +409,7 @@ class SendFileTest(FileTransferTest):
 
         self.ft_path, props = self.conn.Requests.CreateChannel(request)
 
-        # org.freedesktop.Telepathy.Channel D-Bus properties
+        # Channel D-Bus properties
         assertEquals(cs.CHANNEL_TYPE_FILE_TRANSFER, props[cs.CHANNEL_TYPE])
         assertSameSets(
             [ cs.CHANNEL_IFACE_FILE_TRANSFER_METADATA,
@@ -422,7 +422,7 @@ class SendFileTest(FileTransferTest):
         assertEquals(self.self_handle, props[cs.INITIATOR_HANDLE])
         assertEquals(self.self_handle_name, props[cs.INITIATOR_ID])
 
-        # org.freedesktop.Telepathy.Channel.Type.FileTransfer D-Bus properties
+        # Channel.Type.FileTransfer D-Bus properties
         assertEquals(cs.FT_STATE_PENDING, props[cs.FT_STATE])
         assertEquals(self.file.content_type, props[cs.FT_CONTENT_TYPE])
         assertEquals(self.file.name, props[cs.FT_FILENAME])



More information about the telepathy-commits mailing list