aboutsummaryrefslogtreecommitdiffstats
path: root/test/reader/test_path.py
blob: 95e447ff2edcc424301e941f6d528eb476d423d7 (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
"""
# standard 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 ##