""" Part of the bsie test suite. A copy of the license is provided with the project. Author: Matthias Baumgartner, 2022 """ # imports import os import unittest # bsie imports from bsie.base import errors # objects to test from bsie.reader.stat import Stat ## code ## class TestPath(unittest.TestCase): def test_call(self): # test self self.assertEqual(os.stat(__file__), Stat()(__file__)) # test invalid file self.assertRaises(errors.ReaderError, Stat(), '') self.assertRaises(errors.ReaderError, Stat(), None) ## main ## if __name__ == '__main__': unittest.main() ## EOF ##