summaryrefslogtreecommitdiff
path: root/src/mailman/config/tests
diff options
context:
space:
mode:
authorBarry Warsaw2014-11-09 07:52:58 -0500
committerBarry Warsaw2014-11-09 07:52:58 -0500
commit75f8476bee354a9d1a4fc2492f39a06b51d07481 (patch)
tree254672b17a6a040a5cd6e88255c2365d235b4dcd /src/mailman/config/tests
parent4c8435727449e6cfe64e489a75fa5ec1e63f7f21 (diff)
downloadmailman-75f8476bee354a9d1a4fc2492f39a06b51d07481.tar.gz
mailman-75f8476bee354a9d1a4fc2492f39a06b51d07481.tar.zst
mailman-75f8476bee354a9d1a4fc2492f39a06b51d07481.zip
Diffstat (limited to 'src/mailman/config/tests')
-rw-r--r--src/mailman/config/tests/test_configuration.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mailman/config/tests/test_configuration.py b/src/mailman/config/tests/test_configuration.py
index ee4827041..f3a49d64f 100644
--- a/src/mailman/config/tests/test_configuration.py
+++ b/src/mailman/config/tests/test_configuration.py
@@ -53,13 +53,12 @@ class TestConfiguration(unittest.TestCase):
if isinstance(event, ConfigurationUpdatedEvent):
# Record both the event and the top overlay.
events.append(event.config.overlays[0].name)
+ # Do two pushes, and then pop one of them.
with event_subscribers(on_event):
- with configuration('test', _configname='my test'):
- pass
- # There should be two pushed configuration names on the list now, one
- # for the push leaving 'my test' on the top of the stack, and one for
- # the pop, leaving the ConfigLayer's 'test config' on top.
- self.assertEqual(events, ['my test', 'test config'])
+ with configuration('test', _configname='first'):
+ with configuration('test', _configname='second'):
+ pass
+ self.assertEqual(events, ['first', 'second', 'first'])