/usr/lib/telepathy-gabble-tests/twisted/plugin-channel-managers.py is in telepathy-gabble-tests 0.18.3-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | """
Test Gabble's implementation of channel managers from plugins.
"""
from servicetest import (
sync_dbus, call_async, EventPattern, assertEquals, assertContains,
)
from gabbletest import exec_test, send_error_reply, acknowledge_iq, sync_stream
import constants as cs
from config import PLUGINS_ENABLED
TEST_PLUGIN_IFACE = "org.freedesktop.Telepathy.Gabble.Plugin.Test"
if not PLUGINS_ENABLED:
print "NOTE: built without --enable-plugins, not testing plugins"
raise SystemExit(77) # which makes the test show up as skipped
def test(q, bus, conn, stream):
rccs = conn.Properties.Get(cs.CONN_IFACE_REQUESTS,
'RequestableChannelClasses')
# These values are from plugins/test.c
fixed = {
cs.CHANNEL_TYPE: "com.jonnylamb.lolbags",
cs.TARGET_HANDLE_TYPE: cs.HT_NONE,
}
allowed = ["com.jonnylamb.omg", "com.jonnylamb.brokethebuild"]
assertContains((fixed, allowed), rccs)
if __name__ == '__main__':
exec_test(test)
|