1 | #!/usr/bin/env python2
|
2 | """
|
3 | path_stat_test.py: Tests for path_stat.py
|
4 | """
|
5 | from __future__ import print_function
|
6 |
|
7 | import unittest
|
8 |
|
9 | from pylib import path_stat # module under test
|
10 |
|
11 |
|
12 | class PathStatTest(unittest.TestCase):
|
13 |
|
14 | def testPathExists(self):
|
15 | self.assertEqual(True, path_stat.exists('/'))
|
16 | self.assertEqual(False, path_stat.exists('/nonexistent__ZZZZ'))
|
17 |
|
18 | def testIsDir(self):
|
19 | self.assertEqual(True, path_stat.exists('/'))
|
20 | self.assertEqual(False, path_stat.exists('/nonexistent__ZZZZ'))
|
21 |
|
22 |
|
23 | if __name__ == '__main__':
|
24 | unittest.main()
|