From 251c9ef081bdb9233b4885d23501afc3b26324c1 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Wed, 3 Sep 2014 22:54:26 +0200 Subject: Fix typo in docs (Closes #157). --- docs/examples.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/examples.rst b/docs/examples.rst index ee521e3..e7f6057 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -114,9 +114,9 @@ We can now use our factories, for tests: def test_get_profile_stats(self): profiles = [] - profiles.extend(factories.ProfileFactory.batch_create(4)) - profiles.extend(factories.FemaleProfileFactory.batch_create(2)) - profiles.extend(factories.ProfileFactory.batch_create(2, planet="Tatooine")) + profiles.extend(factories.ProfileFactory.create_batch(4)) + profiles.extend(factories.FemaleProfileFactory.create_batch(2)) + profiles.extend(factories.ProfileFactory.create_batch(2, planet="Tatooine")) stats = business_logic.profile_stats(profiles) self.assertEqual({'Earth': 6, 'Mars': 2}, stats.planets) @@ -130,7 +130,7 @@ Or for fixtures: from . import factories def make_objects(): - factories.ProfileFactory.batch_create(size=50) + factories.ProfileFactory.create_batch(size=50) # Let's create a few, known objects. factories.ProfileFactory( -- cgit v1.2.3