Skip to content

Commit

Permalink
test: add root home property test
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax committed Oct 15, 2019
1 parent 4779ce3 commit db6aca7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_immutapath.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,9 @@ def test_home(self):
actual = Path("/A/B/C").relpath("/A").home
self.assertEqual(excpected, actual)
self.assertEqual(excpected.abspath(), actual.abspath())

def test_home_root(self):
excpected = Path(".")
actual = Path("/").home
self.assertEqual(excpected, actual)
self.assertEqual(excpected.abspath(), actual.abspath())

0 comments on commit db6aca7

Please sign in to comment.