'The argument types accepted by L{send1msg} are:
1. C{int}
2. read-only character buffer
3. C{int}
4. sequence
The 3rd and 4th arguments are optional.  If fewer than two arguments or
more than four arguments are passed, or if any of the arguments passed
are not compatible with these types, L{TypeError} is raised.'

def test_sendmsgBadArguments(self):

    self.assertRaises(TypeError, send1msg)
    self.assertRaises(TypeError, send1msg, 1)
    self.assertRaises(TypeError, send1msg, 1, 'hello    world', 2, [], object())
    self.assertRaises(TypeError, send1msg, object(), 'hello    world', 2, [])
    self.assertRaises(TypeError, send1msg, 1, object(), 2, [])
    self.assertRaises(TypeError, send1msg, 1, 'hello    world', object(), [])
    self.assertRaises(TypeError, send1msg, 1, 'hello    world', 2, object())
