Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(8)  |  Derive(0)  |  Import(1)

src/l/i/liquidluck-HEAD/tests/test_readers.py   liquidluck(Download)
#!/usr/bin/env python
 
import os.path
import datetime
from liquidluck.readers.base import BaseReader, Post
    def test_author(self):
        post = Post('filepath', 'content', title='title', meta=self.meta)
        assert str(post.author) == 'lepture'
 
    def test_date(self):
        post = Post('filepath', 'content', title='title', meta=self.meta)
    def test_updated(self):
        path = os.path.join(ROOT, 'source', 'post', 'demo-rst-1.rst')
        post = Post(path, 'content', title='title', meta=self.meta)
        assert isinstance(post.updated, datetime.datetime)
 
    def test_public(self):
        meta = {'public': 'false'}
        post = Post('filepath', 'content', title='title', meta=meta)