From 0c4b9334c93170ce6df17506f48e3937090aec05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Barrois?= Date: Thu, 12 Jan 2012 23:11:58 +0100 Subject: Rename LazyContainerAttibute to ContainerAttribute. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaƫl Barrois --- tests/test_using.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_using.py') diff --git a/tests/test_using.py b/tests/test_using.py index d1e4262..a93c968 100644 --- a/tests/test_using.py +++ b/tests/test_using.py @@ -472,9 +472,9 @@ class SubFactoryTestCase(unittest.TestCase): foo = 30 side_a = factory.SubFactory(SideAFactory, - inner_from_a__a=factory.LazyContainerAttribute(lambda obj, containers: containers[1].foo * 2)) + inner_from_a__a=factory.ContainerAttribute(lambda obj, containers: containers[1].foo * 2)) side_b = factory.SubFactory(SideBFactory, - inner_from_b=factory.LazyContainerAttribute(lambda obj, containers: containers[0].side_a.inner_from_a)) + inner_from_b=factory.ContainerAttribute(lambda obj, containers: containers[0].side_a.inner_from_a)) outer = OuterMostFactory.build() self.assertEqual(outer.foo, 30) -- cgit v1.2.3