This commit is contained in:
Sean McArthur 2012-03-07 16:01:51 -08:00
Родитель 3ef2e5776e
Коммит d47c9ec61c
1 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -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)