diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-01-12 23:11:58 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2012-01-12 23:11:58 +0100 |
commit | 0c4b9334c93170ce6df17506f48e3937090aec05 (patch) | |
tree | e8666590751fc8075a2fa0a76c0b0da5711e62f9 /tests | |
parent | 74225f59761ed3e09b625d9886552bdafb0fc30d (diff) | |
download | factory-boy-0c4b9334c93170ce6df17506f48e3937090aec05.tar factory-boy-0c4b9334c93170ce6df17506f48e3937090aec05.tar.gz |
Rename LazyContainerAttibute to ContainerAttribute.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_using.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |