Imported from SVN by Bitbucket
This commit is contained in:
13
PasteScript-1.7.4.2-py2.6.egg/tests/test_template_introspect.py
Executable file
13
PasteScript-1.7.4.2-py2.6.egg/tests/test_template_introspect.py
Executable file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
from paste.script import templates
|
||||
|
||||
tmpl_dir = os.path.join(os.path.dirname(__file__), 'sample_templates')
|
||||
|
||||
def test_find():
|
||||
vars = templates.find_args_in_dir(tmpl_dir, True)
|
||||
assert 'a' in vars
|
||||
assert vars['a'].default is templates.NoDefault
|
||||
assert 'b' in vars
|
||||
assert vars['b'].default == 1
|
||||
assert len(vars) == 2
|
||||
|
||||
Reference in New Issue
Block a user