Exemplo n.º 1
0
 def test_for_herd(self):
     herds, packages = setup_herds()
     herd = herds[0]
     self.assertEqual(
         list(Package.objects.for_herd(herd)),
         packages[:1]
     )
Exemplo n.º 2
0
 def setUp(self):
     super(HerdsTests, self).setUp()
     self.herds, self.packages = setup_herds()
Exemplo n.º 3
0
 def test_herds(self):
     herds, packages = setup_herds()
     herd_names = [h.herd for h in herds]
     for herd in Package.objects.herds():
         self.assertTrue(herd["herds__herd"] in herd_names)
Exemplo n.º 4
0
 def test_herds(self):
     herds, packages = setup_herds()
     herd_names = [h.herd for h in herds]
     for herd in Package.objects.herds():
         self.assertTrue(herd["herds__herd"] in herd_names)
Exemplo n.º 5
0
 def test_for_herd(self):
     herds, packages = setup_herds()
     herd = herds[0]
     self.assertEqual(list(Package.objects.for_herd(herd)), packages[:1])
Exemplo n.º 6
0
 def setUp(self):
     super(HerdsTests, self).setUp()
     self.herds, self.packages = setup_herds()