Permalink
Browse files

Added test capturing the need for tempdir objects to allow path opera…

…tions and return path objects.
  • Loading branch information...
1 parent 92b74cd commit 54dd9801c4fa8e7f863d5ccec7834b4393c80059 @jaraco committed Jan 15, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 test_path.py
View
@@ -628,6 +628,16 @@ def test_constructor(self):
d.rmdir()
assert not d.exists()
+ def test_next_class(self):
+ """
+ It should be possible to invoke operations on a tempdir and get
+ path classes.
+ """
+ d = tempdir()
+ sub = d / 'subdir'
+ assert isinstance(sub, path)
+ d.rmdir()
+
def test_context_manager(self):
"""
One should be able to use a tempdir object as a context, which will

0 comments on commit 54dd980

Please sign in to comment.