cubicweb/test/unittest_cwctl.py
changeset 12053 c3c9f2e1424c
parent 12020 304477158337
child 12120 707139a9eb00
--- a/cubicweb/test/unittest_cwctl.py	Fri Mar 10 12:02:41 2017 +0100
+++ b/cubicweb/test/unittest_cwctl.py	Thu Mar 09 16:36:33 2017 +0100
@@ -24,6 +24,7 @@
 from six import PY2
 
 from cubicweb.cwconfig import CubicWebConfiguration
+from cubicweb.cwctl import ListCommand
 from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.server.migractions import ServerMigrationHelper
 
@@ -38,9 +39,15 @@
         sys.stdout = sys.__stdout__
 
     def test_list(self):
-        from cubicweb.cwctl import ListCommand
         ListCommand(None).run([])
 
+    def test_list_configurations(self):
+        ListCommand(None).run(['configurations'])
+        configs = [l[2:].strip() for l in self.stream.getvalue().splitlines()
+                   if l.startswith('* ')]
+        self.assertIn('all-in-one', configs)
+        self.assertIn('pyramid', configs)
+
 
 class CubicWebShellTC(CubicWebTC):