diff options
| author | Barry Warsaw | 2014-11-09 08:01:22 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-11-09 08:01:22 -0500 |
| commit | b4936ba0acca23dc61045a9ba604af3a5e29e601 (patch) | |
| tree | 55a4bdc727a1310ba537aa94fc8735c10ed2def7 /src/mailman/config/tests/test_configuration.py | |
| parent | d8ed610f3613847d6b1dbba9dbad7654ef681efb (diff) | |
| parent | 75f8476bee354a9d1a4fc2492f39a06b51d07481 (diff) | |
| download | mailman-b4936ba0acca23dc61045a9ba604af3a5e29e601.tar.gz mailman-b4936ba0acca23dc61045a9ba604af3a5e29e601.tar.zst mailman-b4936ba0acca23dc61045a9ba604af3a5e29e601.zip | |
Trunk merge
Diffstat (limited to 'src/mailman/config/tests/test_configuration.py')
| -rw-r--r-- | src/mailman/config/tests/test_configuration.py | 11 |
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']) |
