summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorBen Connors <benconnors@outlook.com>2019-09-01 16:45:43 -0400
committerBen Connors <benconnors@outlook.com>2019-09-01 16:45:43 -0400
commit4eb082506ba9943e63c7a4ac565e98586bc180e6 (patch)
treebbff71d87077102702e5c3e0e0901f33ec4c1f17 /test.py
Initial commit
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100755
index 0000000..97d707c
--- /dev/null
+++ b/test.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+from epub3 import Book, Page
+
+from lxml import etree
+
+p = Page("Test Page", [("h1", "Test Page"), ("p", "This is a test page"), ("ol", ("", (("li", "1"), ("li", "2"))))])
+
+book = Book("Test Book", "Nobody")
+book.pages.append(p)
+
+book.generate_epub()