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

def test_toResponseNoFrom(self):

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