'Test send with various types of objects.'

def test_send(self):

    xs = self.xmlstream
    xs.send('<presence/>')
    self.assertEqual(xs.transport.value(), '<presence/>')
    xs.transport.clear()
    el = domish.Element(('testns', 'presence'))
    xs.send(el)
    self.assertEqual(xs.transport.value(), '<presence/>')
    xs.transport.clear()
    el = domish.Element(('http://etherx.jabber.org/streams', 'features'))
    xs.send(el)
    self.assertEqual(xs.transport.value(), '<stream:features/>')
