diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/twisted/salut/status.py | 6 | ||||
-rw-r--r-- | tests/twisted/yconstants.py | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/twisted/salut/status.py b/tests/twisted/salut/status.py index 521a55b..895d76a 100644 --- a/tests/twisted/salut/status.py +++ b/tests/twisted/salut/status.py @@ -34,7 +34,7 @@ from avahitest import AvahiAnnouncer, AvahiListener from avahitest import get_host_name from xmppstream import setup_stream_listener, connect_to_stream -CAP_NAME = 'h264-over-ants' +CAP_NAME = 'urn:ytstenut:capabilities:h264-over-ants' CLIENT_NAME = 'fake-client' def test(q, bus, conn): @@ -68,7 +68,7 @@ def test(q, bus, conn): # immediately. # announce a contact with the right caps - ver = compute_caps_hash([], [ycs.CAPABILITIES_PREFIX + CAP_NAME + '+notify'], {}) + ver = compute_caps_hash([], [CAP_NAME + '+notify'], {}) txt_record = { "txtvers": "1", "status": "avail", "node": CLIENT_NAME, "ver": ver, "hash": "sha-1"} contact_name = "test-status@" + get_host_name() @@ -96,7 +96,7 @@ def test(q, bus, conn): query['node'] = CLIENT_NAME + '#' + ver feature = query.addElement('feature') - feature['var'] = ycs.CAPABILITIES_PREFIX + CAP_NAME + '+notify' + feature['var'] = CAP_NAME + '+notify' incoming.send(result) # this will be fired as text channel caps will be fired diff --git a/tests/twisted/yconstants.py b/tests/twisted/yconstants.py index b21b7a7..9184d86 100644 --- a/tests/twisted/yconstants.py +++ b/tests/twisted/yconstants.py @@ -23,5 +23,3 @@ ERROR_TYPE_WAIT = 5 MESSAGE_NS = 'urn:ytstenut:message' STATUS_NS = 'urn:ytstenut:status' - -CAPABILITIES_PREFIX = 'urn:ytstenut:capabilities:' |