':py:obj:`Connection.shutdown` raises :py:obj:`TypeError` if called with the wrong
number of arguments or with arguments other than integers.'

def test_shutdown_wrong_args(self):

    connection = Connection(Context(TLSv1_METHOD), None)
    self.assertRaises(TypeError, connection.shutdown, None)
    self.assertRaises(TypeError, connection.get_shutdown, None)
    self.assertRaises(TypeError, connection.set_shutdown)
    self.assertRaises(TypeError, connection.set_shutdown, None)
    self.assertRaises(TypeError, connection.set_shutdown, 0, 1)
