blob: fd7bc5ab41313dff5d08426211941ead6d5453e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
"""
Part of the bsie test suite.
A copy of the license is provided with the project.
Author: Matthias Baumgartner, 2022
"""
# imports
import unittest
# objects to test
from bsie.reader.path import Path
## code ##
class TestPath(unittest.TestCase):
def test_call(self):
self.assertEqual('', Path()(''))
self.assertEqual('/tmp/foo/bar', Path()('/tmp/foo/bar'))
self.assertEqual('/home/myself/some file', Path()('/home/myself/some file'))
## main ##
if __name__ == '__main__':
unittest.main()
## EOF ##
|