Changeset 2426
- Timestamp:
- 10/06/08 15:17:50 (2 months ago)
- Files:
-
- gaphor/branches/ports/gaphor/tests/testcase.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphor/branches/ports/gaphor/tests/testcase.py
r2425 r2426 64 64 Connect line's handle to an item. 65 65 """ 66 handle.connected_to = item 67 66 68 query = (item, line) 67 handle.connected_to = item68 69 adapter = component.queryMultiAdapter(query, IConnect) 69 return adapter.connect(handle, port) 70 connected = adapter.connect(handle, port) 71 72 assert handle.connected_to is item 73 74 return connected 70 75 71 76 … … 77 82 adapter = component.queryMultiAdapter(query, IConnect) 78 83 adapter.disconnect(line.head) 84 85 handle.connected_to = None 86 87 assert handle.connected_to is None 79 88 80 89
