summaryrefslogtreecommitdiff
path: root/src/mailman/config/tests
diff options
context:
space:
mode:
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'])