Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7eedf07e96
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.855 kb
import tempfile
import unittest
import os
class BinCase(unittest.TestCase):
"""test functions from camelot.bin
"""
def test_create_new_project(self):
from camelot.bin.meta import CreateNewProject, templates, NewProjectOptions
new_project_action = CreateNewProject()
options = NewProjectOptions()
options.source = 'new_project'
new_project_action.start_project( options )
#
# validate the generated files
#
for filename, _template in templates:
code = open( os.path.join( options.source,
filename.replace('{{options.module}}', options.module) ) ).read()
if filename.endswith('.py'):
compile( code,
filename,
'exec' )
Jump to Line
Something went wrong with that request. Please try again.