'Test that a response is generated from a stanza without a to address.'

def test_toResponseNoTo(self):

    stanza = domish.Element(('jabber:client', 'iq'))
    stanza['type'] = 'get'
    stanza['from'] = 'user2@example.com/resource'
    response = xmlstream.toResponse(stanza)
    self.assertFalse(response.hasAttribute('from'))
    self.assertEqual(response['to'], 'user2@example.com/resource')
