def test_post_creation(self):
        self.clear_db()
        title = "My post"
        markup = "# Title"
        tags = ['django','franz-und-bertha','vil-bil']
        expected_slug = "my-post"
        expected_html = "<h1>Title</h1>"
        expected_date = datetime.date.today()
        
        post = Post(title=title, markup=markup)
        post.tags = tags
        db.session.add(post)
        db.session.commit()
        
        assert_equal(post.title, title)
        assert_equal(post.markup, markup)
        assert_true(post.comments_allowed)
        assert_true(post.visible)
        assert_equal(post.slug, expected_slug)
        assert expected_html in post.html
        assert_equal(post.datetime.date(), expected_date)
        assert_equal(sorted(tag.name for tag in post.tags), sorted(tags))
        assert_equal([], post.categories)
        
        # Add another post
        db.session.add(Post(title=title, markup=markup, comments_allowed=False,
            visible=False))
        db.session.commit()
        assert_false(Post.query.get(2).comments_allowed)
        assert_false(Post.query.get(2).visible)
        assert_equal(Post.query.count(), 2)
Start the carousel rotating continuously to the left.
dataset/ETHPy150Open eugenkiss/Simblin/test/test_models.py/TestPosts.test_post_creation--crossover with--dataset/ETHPy150Open ardekantur/pyglet/examples/apple_remote_demo.py/Carousel.rotate_left