Files
pyShelf/tests/test_library.py
2019-10-14 17:52:16 -04:00

21 lines
490 B
Python
Executable File

import unittest
import sys
# sys.path.insert(1, '../')
from lib.library import Catalogue
Catalogue = Catalogue()
class LibraryTest(unittest.TestCase):
def test_libray_catalogue(self):
self.assertIsNotNone(Catalogue)
def test_library_catalogue_filter_books(self):
self.assertIsNotNone(Catalogue.filter_books())
def test_library_catalogue_new_files(self):
self.assertIsNot(Catalogue.new_files(), False)
if __name__ == '__main__':
unittest.main()