~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_account.py

  • Committer: John Arbash Meinel
  • Date: 2010-08-24 19:21:32 UTC
  • mto: This revision was merged to the branch mainline in revision 5390.
  • Revision ID: john@arbash-meinel.com-20100824192132-2ktt5adkbk5bk1ct
Handle test_source and extensions. Also define an 'extern' protocol, to allow
the test suite to recognize that returning an object of that type is a Python object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2010 Canonical Ltd
 
1
# Copyright (C) 2007, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
26
26
class LaunchpadAccountTests(TestCaseInTempDir):
27
27
 
28
28
    def setup_config(self, text):
29
 
        my_config = config.GlobalConfig.from_string(text)
 
29
        my_config = config.GlobalConfig()
 
30
        config_file = StringIO(text)
 
31
        my_config._get_parser(config_file)
30
32
        return my_config
31
33
 
32
34
    def test_get_lp_login_unconfigured(self):