forked from macagua/slc-sitioweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added unit test for initial structure #68
- Loading branch information
1 parent
38dcb73
commit 81764bb
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
backend/src/slc_web/src/slc_web/tests/test_initial_structure.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""This is an integration "unit" test for Site Structure.""" | ||
from slc_web.testing import SLC_WEB_INTEGRATION_TESTING | ||
|
||
import unittest | ||
|
||
|
||
class SiteStructureTest(unittest.TestCase): | ||
"""The class that tests the Plone Site Structure was created. | ||
Args: | ||
unittest (class): unittest TestCase | ||
""" | ||
|
||
layer = SLC_WEB_INTEGRATION_TESTING | ||
|
||
def setUp(self): | ||
"""Custom shared utility setup for tests.""" | ||
self.portal = self.layer["portal"] | ||
self.existing = self.portal.objectIds() | ||
|
||
def test_default_content_is_removed(self): | ||
"""This method test that the default content is removed.""" | ||
existing = self.portal.objectIds() | ||
self.assertTrue("front-page" not in existing) | ||
self.assertTrue("events" not in existing) | ||
self.assertTrue("news" not in existing) | ||
self.assertTrue("Members" not in existing) |