15
15
16
16
17
17
class TestSetup (unittest .TestCase ):
18
- """Test that cusy.cms is properly installed."""
18
+ """Validate that ` cusy.cms` is properly installed."""
19
19
20
20
layer = INTEGRATION_TESTING
21
21
@@ -28,20 +28,36 @@ def setUp(self):
28
28
self .installer = api .portal .get_tool ("portal_quickinstaller" )
29
29
30
30
def test_product_installed (self ):
31
- """Test if cusy.cms is installed."""
31
+ """Validate that ` cusy.cms` is installed."""
32
32
self .assertTrue (self .installer .isProductInstalled ("cusy.cms" ))
33
33
34
34
def test_browserlayer (self ):
35
- """Test that ICusyCmsLayer is registered."""
35
+ """Validate that the browser layer is registered."""
36
36
from cusy .cms .interfaces import ICusyCmsLayer
37
37
from plone .browserlayer import utils
38
38
39
39
self .assertIn (ICusyCmsLayer , utils .registered_layers ())
40
40
41
+ def test_cusy_exportimport_installed (self ):
42
+ """Validate that `cusy.exportimport` is installed."""
43
+ self .assertTrue (self .installer .isProductInstalled ("cusy.exportimport" ))
44
+
45
+ def test_cusy_restapi_easyform_installed (self ):
46
+ """Validate that `cusy.restapi.easyform` is installed."""
47
+ self .assertTrue (self .installer .isProductInstalled ("cusy.restapi.easyform" ))
48
+
49
+ def test_cusy_restapi_info_installed (self ):
50
+ """Validate that `cusy.restapi.info` is installed."""
51
+ self .assertTrue (self .installer .isProductInstalled ("cusy.restapi.info" ))
52
+
53
+ def test_cusy_restapi_patches_installed (self ):
54
+ """Validate that `cusy.restapi.patches` is installed."""
55
+ self .assertTrue (self .installer .isProductInstalled ("cusy.restapi.patches" ))
56
+
41
57
42
58
class TestUninstall (unittest .TestCase ):
43
59
44
- layer = CUSY_CMS_INTEGRATION_TESTING
60
+ layer = INTEGRATION_TESTING
45
61
46
62
def setUp (self ):
47
63
self .portal = self .layer ["portal" ]
@@ -55,11 +71,11 @@ def setUp(self):
55
71
setRoles (self .portal , TEST_USER_ID , roles_before )
56
72
57
73
def test_product_uninstalled (self ):
58
- """Test if cusy.cms is cleanly uninstalled."""
74
+ """Validate that ` cusy.cms` is cleanly uninstalled."""
59
75
self .assertFalse (self .installer .isProductInstalled ("cusy.cms" ))
60
76
61
77
def test_browserlayer_removed (self ):
62
- """Test that ICusyCmsLayer is removed."""
78
+ """Validate that the browser layer is removed."""
63
79
from cusy .cms .interfaces import ICusyCmsLayer
64
80
from plone .browserlayer import utils
65
81
0 commit comments