34 |
34 |
35 def test_newcube(self): |
35 def test_newcube(self): |
36 expected = ['i18n', 'hooks.py', 'setup.py', 'views.py', 'test', |
36 expected = ['i18n', 'hooks.py', 'setup.py', 'views.py', 'test', |
37 'migration', 'entities.py', 'MANIFEST.in', 'schema.py', |
37 'migration', 'entities.py', 'MANIFEST.in', 'schema.py', |
38 'cubicweb-foo.spec', '__init__.py', 'debian', 'data', |
38 'cubicweb-foo.spec', '__init__.py', 'debian', 'data', |
39 '__pkginfo__.py', 'README'] |
39 '__pkginfo__.py', 'README', 'tox.ini'] |
40 tmpdir = tempfile.mkdtemp(prefix="temp-cwctl-newcube") |
40 tmpdir = tempfile.mkdtemp(prefix="temp-cwctl-newcube") |
41 try: |
41 try: |
42 cmd = [sys.executable, '-m', 'cubicweb', 'newcube', |
42 cmd = [sys.executable, '-m', 'cubicweb', 'newcube', |
43 '--directory', tmpdir, 'foo'] |
43 '--directory', tmpdir, 'foo'] |
44 proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) |
44 proc = Popen(cmd, stdin=PIPE, stdout=PIPE, stderr=STDOUT) |