mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
23 lines
626 B
Python
23 lines
626 B
Python
import sys
|
|
import unittest
|
|
|
|
from lib.pyShelf import BookDisplay, BookServer
|
|
from lib.display import Frontend
|
|
sys.path.insert(0, '../lib')
|
|
sys.path.insert(1, '../')
|
|
|
|
class BookServerTest(unittest.TestCase):
|
|
|
|
def __init__(self):
|
|
self.dimensions = [900, 450]
|
|
|
|
def test_booksPerPage(self):
|
|
x, y = self.dimensions[0], self.dimensions[1]
|
|
self.assertGreater(BookDisplay().booksPerPage([x,y]), 0)
|
|
|
|
def test_Frontend(self):
|
|
x, y = self.dimensions[0], self.dimensions[1]
|
|
ui = Frontend([x, y]).compile("TestCase", "Test Shelf")
|
|
print(ui)
|
|
self.assertNotEqual(ui, False)
|