File: test_epub_cover.py

package info (click to toggle)
python-ebooklib 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 708 kB
  • sloc: python: 2,541; makefile: 132; sh: 53
file content (10 lines) | stat: -rw-r--r-- 232 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import ebooklib
from ebooklib import epub


class TestEpubCover:
    def test_init_default(self):
        cover = epub.EpubCover()

        assert cover.get_id() == "cover-img"
        assert cover.get_type() == ebooklib.ITEM_COVER