summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-15 13:51:39 -0400
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-15 13:51:39 -0400
commit5d9b814f90e8db92d13874d276187213d3feabfd (patch)
tree04acb862545d9db37dd59761b64610907599c53e /tests
parent4c5405c481b24787830136c239fcc93d01b0b35e (diff)
IRC_Command: prevent user of sending commands for which we have proper API
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/irc-command.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/twisted/irc-command.py b/tests/twisted/irc-command.py
index f27dbb1..6ec27da 100644
--- a/tests/twisted/irc-command.py
+++ b/tests/twisted/irc-command.py
@@ -20,6 +20,11 @@ def test(q, bus, conn, stream):
q.expect('dbus-return', method='Send')
+ # We are not supposed to use this API to send messages
+ call_async(q, irc_cmd, 'Send', 'PRIVMSG badger :oh hi')
+
+ q.expect('dbus-error', method='Send', name=cs.INVALID_ARGUMENT)
+
call_async(q, conn, 'Disconnect')
if __name__ == '__main__':