Changeset 37:fdc4860de17d for wokkel
- Timestamp:
- Oct 11, 2008, 9:33:12 PM (14 years ago)
- Branch:
- default
- Convert:
- svn:b33ecbfc-034c-dc11-8662-000475d9059e/trunk@103
- Location:
- wokkel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/compat.py
r34 r37 35 35 if stanzaID: 36 36 response['id'] = stanzaID 37 if type:37 if stanzaType: 38 38 response['type'] = stanzaType 39 39 -
wokkel/test/test_compat.py
r34 r37 124 124 response = toResponse(stanza) 125 125 self.failIf(response.hasAttribute('id')) 126 127 128 def test_noType(self): 129 """ 130 Test that a proper response is generated without type attribute. 131 """ 132 stanza = domish.Element(('jabber:client', 'message')) 133 response = toResponse(stanza) 134 self.failIf(response.hasAttribute('type'))
Note: See TracChangeset
for help on using the changeset viewer.