cubicweb/devtools/test/unittest_devctl.py
changeset 11175 df979f327e3f
parent 11137 447a6f1e8def
child 11176 4a43193ce7b0
equal deleted inserted replaced
11174:eb88fdfd3740 11175:df979f327e3f
    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)