input: Write a function to create a new blog post in the database using Flask and SQLAlchemy.
  assert create_post({'title': 'First Post', 'content': 'This is the first post'}).status_code == 200
  assert create_post({'title': 'Second Post', 'content': 'This is the second post'}).status_code == 200
output: def create_post(data):
      from flask import Flask, request, jsonify
      from flask_sqlalchemy import SQLAlchemy
  
      app = Flask(__name__)
      app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///posts.db'
      db = SQLAlchemy(app)
  
      class Post(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          title = db.Column(db.String(100), nullable=False)
          content = db.Column(db.Text, nullable=False)
  
      db.create_all()
  
      @app.route('/create_post', methods=['POST'])
      def create_post():
          post_data = request.get_json()
          new_post = Post(title=post_data['title'], content=post_data['content'])
          db.session.add(new_post)
          db.session.commit()
          return jsonify({'message': 'Post created successfully'}), 200
  
      with app.test_client() as client:
          response = client.post('/create_post', json=data)
          return response