/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2010-03-21 21:39:33 UTC
  • mfrom: (5102 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5143.
  • Revision ID: jelmer@samba.org-20100321213933-fexeh9zcoz8oaju2
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Canonical Ltd
 
1
# Copyright (C) 2009, 2010 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
39
39
 
40
40
    def patch(self, obj, name, value):
41
41
        """Temporarily set the 'name' attribute of 'obj' to 'value'."""
42
 
        real_value = getattr(obj, name)
43
 
        setattr(obj, name, value)
44
 
        self.addCleanup(setattr, obj, name, real_value)
 
42
        self.overrideAttr(obj, name, value)
45
43
 
46
44
    def test_get_launchpadlib_version(self):
47
45
        # parse_launchpadlib_version returns a tuple of a version number of