From d47c9ec61cbbf2dee86945fcd5e7bef88425609a Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 7 Mar 2012 16:01:51 -0800 Subject: [PATCH] fixing test --- apps/jetpack/tests/revision_tests.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/jetpack/tests/revision_tests.py b/apps/jetpack/tests/revision_tests.py index ef6723b8..772a93ba 100644 --- a/apps/jetpack/tests/revision_tests.py +++ b/apps/jetpack/tests/revision_tests.py @@ -206,10 +206,14 @@ class PackageRevisionTest(TestCase): def test_adding_libs_with_common_dependency(self): # if B and C both depend on D, at the same version, then it should # be able to add both to A - addon = Package(author=self.author, type='a').save() - lib1 = Package(author=self.author, type='l').save() - lib2 = Package(author=self.author, type='l').save() - lib3 = Package(author=self.author, type='l').save() + addon = Package(author=self.author, type='a') + addon.save() + lib1 = Package(author=self.author, type='l') + lib1.save() + lib2 = Package(author=self.author, type='l') + lib2.save() + lib3 = Package(author=self.author, type='l') + lib3.save() lib1.latest.dependency_add(lib3.latest) lib2.latest.dependency_add(lib3.latest)