~ubuntu-branches/ubuntu/natty/telepathy-haze/natty

« back to all changes in this revision

Viewing changes to tests/twisted/text/destroy.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonny Lamb
  • Date: 2010-07-19 12:33:29 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100719123329-lz52qtzku66jpw17
Tags: 0.3.6-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
from twisted.words.xish import domish
9
9
 
10
10
from hazetest import exec_test
11
 
from servicetest import call_async, EventPattern, tp_path_prefix
 
11
from servicetest import call_async, EventPattern, assertEquals
12
12
 
13
13
def test(q, bus, conn, stream):
14
14
    conn.Connect()
122
122
    call_async(q, destroyable_iface, 'Destroy')
123
123
 
124
124
    event = q.expect('dbus-signal', signal='Closed')
125
 
    assert tp_path_prefix + event.path == text_chan.object_path,\
126
 
            (tp_path_prefix + event.path, text_chan.object_path)
 
125
    assertEquals(text_chan.object_path, event.path)
127
126
 
128
127
    event = q.expect('dbus-return', method='Destroy')
129
128