launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #04592
Re: Lighter tests with FakeLibrarian
-
To:
launchpad-dev@xxxxxxxxxxxxxxxxxxx
-
From:
Jeroen Vermeulen <jtv@xxxxxxxxxxxxx>
-
Date:
Sat, 11 Sep 2010 18:02:23 +0700
-
In-reply-to:
<AANLkTinpMF_YU2VNa5Z3FMX5Jidf_=rEEzvN_7p41zkR@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7
On 2010-09-11 15:16, Robert Collins wrote:
I just ran into another difference between fixtures and context
managers while evaluating a feature request from James Westby.
Thanks for bringing this up. The FakeLibrarian is a proper fixture
nowadays:
class TestMe(TestCase):
def setUp(self):
super(TestMe, self).setUp()
self.fake_librarian = self.installFixture(FakeLibrarian())
Jeroen
References