author | Laurent Peuch <cortex@worlddomination.be> |
Tue, 21 May 2019 16:36:12 +0200 | |
changeset 12685 | 84a8a8915512 |
parent 12568 | fc45f22c8100 |
child 12691 | 3f0e64630d94 |
permissions | -rw-r--r-- |
9639
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
1 |
# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
2 |
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
3 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
4 |
# This file is part of CubicWeb. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
5 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
6 |
# CubicWeb is free software: you can redistribute it and/or modify it under the |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
7 |
# terms of the GNU Lesser General Public License as published by the Free |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
8 |
# Software Foundation, either version 2.1 of the License, or (at your option) |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
9 |
# any later version. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
10 |
# |
5424
8ecbcbff9777
replace logilab-common by CubicWeb in disclaimer
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5421
diff
changeset
|
11 |
# CubicWeb is distributed in the hope that it will be useful, but WITHOUT |
5421
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
13 |
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
14 |
# details. |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
15 |
# |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
16 |
# You should have received a copy of the GNU Lesser General Public License along |
8167de96c523
proper licensing information (LGPL-2.1). Hope I get it right this time.
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
4212
diff
changeset
|
17 |
# with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
0 | 18 |
import sys |
19 |
import os |
|
6631
26c303c3f1aa
[test] make test independant from the working directory
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6197
diff
changeset
|
20 |
from os.path import join |
12567
26744ad37953
Drop python2 support
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12121
diff
changeset
|
21 |
from io import StringIO |
11469
e0538fee4caa
[test] Use plain unittest in unittest_cwctl.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11057
diff
changeset
|
22 |
import unittest |
12685
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
23 |
from unittest.mock import patch, MagicMock |
12120
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
24 |
|
12685
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
25 |
from logilab.common.clcommands import CommandLine |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
26 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
27 |
from cubicweb.cwctl import ListCommand, InstanceCommand |
5430
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
28 |
from cubicweb.devtools.testlib import CubicWebTC |
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
29 |
from cubicweb.server.migractions import ServerMigrationHelper |
12685
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
30 |
from cubicweb.cwconfig import CubicWebConfiguration as cwcfg |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
31 |
from cubicweb.__pkginfo__ import version as cw_version |
5430
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
32 |
|
12120
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
33 |
import unittest_cwconfig |
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
34 |
|
5430
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
35 |
|
11469
e0538fee4caa
[test] Use plain unittest in unittest_cwctl.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11057
diff
changeset
|
36 |
class CubicWebCtlTC(unittest.TestCase): |
12120
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
37 |
setUpClass = unittest_cwconfig.CubicWebConfigurationTC.setUpClass |
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
38 |
tearDownClass = unittest_cwconfig.CubicWebConfigurationTC.tearDownClass |
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
39 |
|
0 | 40 |
def setUp(self): |
12567
26744ad37953
Drop python2 support
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12121
diff
changeset
|
41 |
self.stream = StringIO() |
0 | 42 |
sys.stdout = self.stream |
11469
e0538fee4caa
[test] Use plain unittest in unittest_cwctl.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11057
diff
changeset
|
43 |
|
0 | 44 |
def tearDown(self): |
45 |
sys.stdout = sys.__stdout__ |
|
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
46 |
|
12120
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
47 |
@patch('pkg_resources.iter_entry_points', side_effect=unittest_cwconfig.iter_entry_points) |
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
48 |
def test_list(self, mock_iter_entry_points): |
6197
d8f0dce0b86d
[test] fixes to follow recent changes
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
5436
diff
changeset
|
49 |
ListCommand(None).run([]) |
12120
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
50 |
self.assertNotIn('cubicweb_', self.stream.getvalue()) |
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
51 |
mock_iter_entry_points.assert_called_once_with( |
707139a9eb00
[cwctl] Drop 'cubicweb_' prefix when displaying cubes with 'cubicweb-ctl list'
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12053
diff
changeset
|
52 |
group='cubicweb.cubes', name=None) |
1802
d628defebc17
delete-trailing-whitespace + some copyright update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
53 |
|
12053
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
54 |
def test_list_configurations(self): |
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
55 |
ListCommand(None).run(['configurations']) |
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
56 |
configs = [l[2:].strip() for l in self.stream.getvalue().splitlines() |
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
57 |
if l.startswith('* ')] |
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
58 |
self.assertIn('all-in-one', configs) |
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
59 |
self.assertIn('pyramid', configs) |
c3c9f2e1424c
[pyramid] Add a "pyramid" instance configuration type
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
12020
diff
changeset
|
60 |
|
5430
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
61 |
|
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
62 |
class CubicWebShellTC(CubicWebTC): |
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
63 |
|
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
64 |
def test_process_script_args_context(self): |
9639
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
65 |
repo = self.repo |
10353
d9a1e7939ee6
[migractions] remove any session related leftovers
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
9639
diff
changeset
|
66 |
with self.admin_access.repo_cnx() as cnx: |
9639
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
67 |
mih = ServerMigrationHelper(None, repo=repo, cnx=cnx, |
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
68 |
interactive=False, |
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
69 |
# hack so it don't try to load fs schema |
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
70 |
schema=1) |
12121
86ec847835cd
Fix flake8 errors in unittest_cwctl
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12120
diff
changeset
|
71 |
scripts = { |
86ec847835cd
Fix flake8 errors in unittest_cwctl
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12120
diff
changeset
|
72 |
'script1.py': list(), |
86ec847835cd
Fix flake8 errors in unittest_cwctl
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12120
diff
changeset
|
73 |
'script2.py': ['-v'], |
86ec847835cd
Fix flake8 errors in unittest_cwctl
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12120
diff
changeset
|
74 |
'script3.py': ['-vd', '-f', 'FILE.TXT'], |
86ec847835cd
Fix flake8 errors in unittest_cwctl
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
12120
diff
changeset
|
75 |
} |
9639
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
76 |
mih.cmd_process_script(join(self.datadir, 'scripts', 'script1.py'), |
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
77 |
funcname=None) |
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
78 |
for script, args in scripts.items(): |
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
79 |
scriptname = os.path.join(self.datadir, 'scripts', script) |
10600
180aa08cad48
[tests] Replace use of deprecated TestCase.assert_
Rémi Cardona <remi.cardona@logilab.fr>
parents:
10353
diff
changeset
|
80 |
self.assertTrue(os.path.exists(scriptname)) |
9639
74b3db5bb41d
[test] silence warnings for unittest_cwctl by upgrading to new 3.19 API
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
6632
diff
changeset
|
81 |
mih.cmd_process_script(scriptname, None, scriptargs=args) |
5430
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
82 |
|
ed8f71e244f8
[shell] #715938: support of script parameters (using standard '--' as arguments separator)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
5426
diff
changeset
|
83 |
|
12685
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
84 |
class TestCommand(InstanceCommand): |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
85 |
"I need some doc" |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
86 |
name = "test" |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
87 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
88 |
def test_instance(self, appid): |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
89 |
pass |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
90 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
91 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
92 |
class InstanceCommandTest(unittest.TestCase): |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
93 |
def test_getting_called(self): |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
94 |
CWCTL = CommandLine('cubicweb-ctl', 'The CubicWeb swiss-knife.', |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
95 |
version=cw_version, check_duplicated_command=False) |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
96 |
cwcfg.load_cwctl_plugins() |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
97 |
CWCTL.register(TestCommand) |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
98 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
99 |
TestCommand.test_instance = MagicMock(return_value=0) |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
100 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
101 |
# pretend that this instance exists |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
102 |
cwcfg.config_for = MagicMock(return_value=object()) |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
103 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
104 |
try: |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
105 |
CWCTL.run(["test", "some_instance"]) |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
106 |
except SystemExit as ex: # CWCTL will finish the program after that |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
107 |
self.assertEqual(ex.code, 0) |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
108 |
TestCommand.test_instance.assert_called_with("some_instance") |
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
109 |
|
84a8a8915512
[cubicweb-ctl] move to accepting only once instance name per command
Laurent Peuch <cortex@worlddomination.be>
parents:
12568
diff
changeset
|
110 |
|
0 | 111 |
if __name__ == '__main__': |
11469
e0538fee4caa
[test] Use plain unittest in unittest_cwctl.py
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
11057
diff
changeset
|
112 |
unittest.main() |