示例#1
0
 def test_for_maintainer(self):
     maintainers, packages = setup_maintainers()
     maintainer = maintainers[0]
     self.assertEqual(
         list(Package.objects.for_maintainer(maintainer)),
         packages[:1]
     )
示例#2
0
 def setUp(self):
     super(MaintainersTests, self).setUp()
     self.maintainers, self.packages = setup_maintainers()
示例#3
0
 def test_maintainers(self):
     maintainers, packages = setup_maintainers()
     maintainer_ids = [m.pk for m in maintainers]
     for maintainer in Package.objects.maintainers():
         self.assertTrue(maintainer["maintainers__id"] in maintainer_ids)
示例#4
0
 def test_maintainers(self):
     maintainers, packages = setup_maintainers()
     maintainer_ids = [m.pk for m in maintainers]
     for maintainer in Package.objects.maintainers():
         self.assertTrue(maintainer["maintainers__id"] in maintainer_ids)
示例#5
0
 def test_for_maintainer(self):
     maintainers, packages = setup_maintainers()
     maintainer = maintainers[0]
     self.assertEqual(list(Package.objects.for_maintainer(maintainer)),
                      packages[:1])
示例#6
0
 def setUp(self):
     super(MaintainersTests, self).setUp()
     self.maintainers, self.packages = setup_maintainers()