예제 #1
0
파일: test_mobi.py 프로젝트: daqing15/ebook
def test_create():
    entries = [
        Entry('Hello', 'hello world'),
        Entry('1', '111', category='1'),
        Entry('2', '111', category='1'),
        Entry('3', '111', category='1'),
        Entry(u'中文', '111', category='2'),
    ]
    book = Book('test', entries, lang='zh-CN', uid="test-book")
    create(book, 'build/test1')
예제 #2
0
파일: test_mobi.py 프로젝트: daqing15/ebook
def test_create():
    entries = [
        Entry('Hello', 'hello world'),
        Entry('1', '111', category='1'),
        Entry('2', '111', category='1'),
        Entry('3', '111', category='1'),
        Entry(u'中文', '111', category='2'),
    ]
    book = Book('test', entries, lang='zh-CN', uid="test-book")
    create(book, 'build/test1')
예제 #3
0
def test_periodical():
    entries = [
        Entry('Hello', 'hello world'),
        Entry('1', '111', category='1'),
        Entry('2', '111', category='1'),
        Entry('3', '111', category='1'),
        Entry(u'中文', '111', category='2'),
    ]
    book = Book('test', entries, periodical=True, lang='zh-CN',
                uid="test-periodical")
    create(book, 'build/test2')