~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/tests/test_configfile.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Test configuration file searching."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
 
21
    'TestConfigFileBase',
 
22
    'TestConfigFileSearch',
 
23
    'TestConfigFileSearchWithChroot',
24
24
    ]
25
25
 
26
26
 
31
31
import unittest
32
32
 
33
33
from contextlib import contextmanager
34
 
 
35
34
from mailman.core.initialize import search_for_configuration_file
36
35
 
37
36
 
107
106
        return os.path.join(self._root, path)
108
107
 
109
108
 
 
109
 
110
110
class TestConfigFileSearch(TestConfigFileBase):
111
111
    """Test various aspects of searching for configuration files.
112
112
 
128
128
                self.assertEqual(found, config_file)
129
129
 
130
130
 
 
131
 
131
132
class TestConfigFileSearchWithChroot(TestConfigFileBase):
132
133
    """Like `TestConfigFileSearch` but with a special os.path.exists()."""
133
134