~jteh/bzr-email/pushPullEnhancements

« back to all changes in this revision

Viewing changes to tests/test_smtp_connection.py

  • Committer: James Teh
  • Date: 2011-06-08 07:08:58 UTC
  • mfrom: (40.2.9 trunk)
  • Revision ID: jamie@jantrid.net-20110608070858-mmmg2in7iobmzp28
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005 by Canonical Ltd
 
1
# Copyright (C) 2007, 2010 by Canonical Ltd
2
2
#   Authors: Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
63
63
class TestSMTPConnection(TestCase):
64
64
 
65
65
    def get_connection(self, text):
66
 
        my_config = config.GlobalConfig()
67
 
        config_file = StringIO(text)
68
 
        my_config._get_parser(config_file)
 
66
        my_config = config.GlobalConfig.from_string(text)
69
67
        return InstrumentedSMTPConnection(my_config)
70
68
 
71
69
    def test_defaults(self):