[next] telepathy-mission-control: bad-cm test: avoid differing Protocol_Name syntax between v0 and v1

Simon McVittie smcv at kemper.freedesktop.org
Tue Nov 5 14:25:08 CET 2013


Module: telepathy-mission-control
Branch: next
Commit: 0ee4501c905625e47acb654b08af15143f04fad9
URL:    http://cgit.freedesktop.org/telepathy/telepathy-mission-control/commit/?id=0ee4501c905625e47acb654b08af15143f04fad9

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Nov  5 13:24:56 2013 +0000

bad-cm test: avoid differing Protocol_Name syntax between v0 and v1

nonexistent-protocol now raises InvalidArgument, because its name
is syntactically invalid. Avoid the - vs. _ issue by using a name
without either.

---

 tests/twisted/account-manager/bad-cm.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/account-manager/bad-cm.py b/tests/twisted/account-manager/bad-cm.py
index 74277b4..fb57bb7 100644
--- a/tests/twisted/account-manager/bad-cm.py
+++ b/tests/twisted/account-manager/bad-cm.py
@@ -46,10 +46,10 @@ def test(q, bus, mc):
     assertContains("nonexistent_cm", e.message)
 
     # Create an account with a bad Protocol - it should fail
-    call_create(protocol='nonexistent-protocol')
+    call_create(protocol='nonexistentprotocol')
     e = q.expect('dbus-error', method='CreateAccount')
     assertEquals(cs.NOT_IMPLEMENTED, e.name)
-    assertContains("nonexistent-protocol", e.message)
+    assertContains("nonexistentprotocol", e.message)
 
     # Create an account with incomplete Parameters - it should fail
     call_create(parameters={"account": "someguy at example.com"})



More information about the telepathy-commits mailing list