'When called with arguments other than a string argument for its first
parameter or with more than two arguments, :py:obj:`Connection.sendall`
raises :py:obj:`TypeError`.'

def test_wrong_args(self):

    connection = Connection(Context(TLSv1_METHOD), None)
    self.assertRaises(TypeError, connection.sendall)
    self.assertRaises(TypeError, connection.sendall, object())
    self.assertRaises(TypeError, connection.sendall, 'foo', object(), 'bar')
