~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smtp_connection.py

Move the '_save' parameter from '__init__' to 'from_bytes', fix fallouts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
class TestSMTPConnection(tests.TestCaseInTempDir):
92
92
 
93
93
    def get_connection(self, text, smtp_factory=None):
94
 
        my_config = config.GlobalConfig(_content=text)
 
94
        my_config = config.GlobalConfig.from_bytes(text)
95
95
        return smtp_connection.SMTPConnection(my_config,
96
96
                                              _smtp_factory=smtp_factory)
97
97