Rev 2913: Cleanup. in http://code.launchpad.net/%7Ev-ladeuil/bzr/auth.ring
Vincent Ladeuil
v.ladeuil+lp at free.fr
Sun Oct 21 09:59:55 BST 2007
At http://code.launchpad.net/%7Ev-ladeuil/bzr/auth.ring
------------------------------------------------------------
revno: 2913
revision-id: v.ladeuil+lp at free.fr-20071021085941-w5ji5t385d8b5o26
parent: v.ladeuil+lp at free.fr-20071020164914-zr8s4gimxnbmvecd
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: auth.ring
timestamp: Sun 2007-10-21 10:59:41 +0200
message:
Cleanup.
* bzrlib/tests/test_smtp_connection.py:
(TestSMTPConnection.get_connection): No more need for a private
shared function.
modified:
bzrlib/tests/test_smtp_connection.py test_smtp_connection-20070618204509-wuyxc0r0ztrecv7e-1
-------------- next part --------------
=== modified file 'bzrlib/tests/test_smtp_connection.py'
--- a/bzrlib/tests/test_smtp_connection.py 2007-10-20 16:49:14 +0000
+++ b/bzrlib/tests/test_smtp_connection.py 2007-10-21 08:59:41 +0000
@@ -57,18 +57,14 @@
return smtp
-def _get_connection(text, smtp_factory=None):
- my_config = config.GlobalConfig()
- config_file = StringIO(text)
- my_config._get_parser(config_file)
- return smtp_connection.SMTPConnection(my_config,
- _smtp_factory=smtp_factory)
-
-
class TestSMTPConnection(tests.TestCaseInTempDir):
def get_connection(self, text, smtp_factory=None):
- return _get_connection(text, smtp_factory)
+ my_config = config.GlobalConfig()
+ config_file = StringIO(text)
+ my_config._get_parser(config_file)
+ return smtp_connection.SMTPConnection(my_config,
+ _smtp_factory=smtp_factory)
def test_defaults(self):
conn = self.get_connection('')
More information about the bazaar-commits
mailing list