diff options
author | Trever Fischer <tdfischer@fedoraproject.org> | 2012-02-22 16:28:51 -0500 |
---|---|---|
committer | Trever Fischer <tdfischer@fedoraproject.org> | 2012-03-07 17:14:50 -0500 |
commit | 47e7793ebb36b6192d812ecc6446adaafec897d2 (patch) | |
tree | 7f2aa24d32999392d757930999d26651b45756a2 /tests | |
parent | 48e9bae82dd249d4d36998f782c809ce0b2d6ad2 (diff) | |
download | telepathy-salut-47e7793ebb36b6192d812ecc6446adaafec897d2.tar.gz |
Add IPV4/6 availability tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/twisted/avahi/file-transfer/file_transfer_helper.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/twisted/avahi/file-transfer/file_transfer_helper.py b/tests/twisted/avahi/file-transfer/file_transfer_helper.py index d25db76b..82624057 100644 --- a/tests/twisted/avahi/file-transfer/file_transfer_helper.py +++ b/tests/twisted/avahi/file-transfer/file_transfer_helper.py @@ -251,7 +251,9 @@ class ReceiveFileTest(FileTransferTest): # FT's protocol doesn't allow us the send the date info assert props[cs.FT_DATE] == 0 assert props[cs.FT_AVAILABLE_SOCKET_TYPES] == \ - {cs.SOCKET_ADDRESS_TYPE_UNIX: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST]} + {cs.SOCKET_ADDRESS_TYPE_UNIX: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST], + cs.SOCKET_ADDRESS_TYPE_IPV4: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST], + cs.SOCKET_ADDRESS_TYPE_IPV6: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST]} assert props[cs.FT_TRANSFERRED_BYTES] == 0 assert props[cs.FT_INITIAL_OFFSET] == 0 @@ -411,7 +413,9 @@ class SendFileTest(FileTransferTest): assert props[cs.FT_DESCRIPTION] == self.file.description assert props[cs.FT_DATE] == self.file.date assert props[cs.FT_AVAILABLE_SOCKET_TYPES] == \ - {cs.SOCKET_ADDRESS_TYPE_UNIX: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST]} + {cs.SOCKET_ADDRESS_TYPE_UNIX: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST], + cs.SOCKET_ADDRESS_TYPE_IPV4: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST], + cs.SOCKET_ADDRESS_TYPE_IPV6: [cs.SOCKET_ACCESS_CONTROL_LOCALHOST]} assert props[cs.FT_TRANSFERRED_BYTES] == 0 assert props[cs.FT_INITIAL_OFFSET] == 0 if uri: |