Permalink
Browse files

coverage

  • Loading branch information...
1 parent adf3239 commit 88435e58b45b7c00387508bb2960f784d627bf00 @mcdonc mcdonc committed Aug 6, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 pyramid/tests/test_scaffolds/test_copydir.py
@@ -176,6 +176,14 @@ def test_makedirs_parent_dir(self):
self._callFUT(target, 2, None)
shutil.rmtree(tmpdir)
+ def test_makedirs_no_parent_dir(self):
+ import shutil
+ import tempfile
+ tmpdir = tempfile.mkdtemp()
+ target = os.path.join(tmpdir, 'nonexistent_subdir', 'non2')
+ self._callFUT(target, 2, None)
+ shutil.rmtree(tmpdir)
+
class Test_support_functions(unittest.TestCase):
def _call_html_quote(self, *arg, **kw):

0 comments on commit 88435e5

Please sign in to comment.