Pylons/pyramid — pull request #318 by gjhiggins (2011-10-13 15:17:03+00:00)
Title: test_copydir

Tests and associated support resources for exercising scaffoldings copydir.

100% coverage and all tests passing w. tox

[TOX] py26: commands succeeded
[TOX] py27: commands succeeded
[TOX] py32: commands succeeded
[TOX] pypy: commands succeeded
[TOX] cover: commands succeeded

There's a suppressed bug in copydir, where a string is multiply-formatted

#163 return 'Skipping %s file %(filename)s' % os.path.splitext(name)[1]

#236 in test_copydir (test_should_skip_bytecompiled_file) asserts the Error (to avoid fugly fails)

Needed to replace cgi.escape with compat.escape and use a different url_quote to avoid name clash with compat's url_quote.

raw_input is a nightmare to test.