Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Aug 6, 2012
1 parent adf3239 commit 88435e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyramid/tests/test_scaffolds/test_copydir.py
Expand Up @@ -176,6 +176,14 @@ def test_makedirs_parent_dir(self):
self._callFUT(target, 2, None) self._callFUT(target, 2, None)
shutil.rmtree(tmpdir) 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): class Test_support_functions(unittest.TestCase):


def _call_html_quote(self, *arg, **kw): def _call_html_quote(self, *arg, **kw):
Expand Down

0 comments on commit 88435e5

Please sign in to comment.