예제 #1
0
 def test_for_herd(self):
     herds, packages = setup_herds()
     herd = herds[0]
     self.assertEqual(
         list(Package.objects.for_herd(herd)),
         packages[:1]
     )
예제 #2
0
파일: test_views.py 프로젝트: mgorny/euscan
 def setUp(self):
     super(HerdsTests, self).setUp()
     self.herds, self.packages = setup_herds()
예제 #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)
예제 #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)
예제 #5
0
 def test_for_herd(self):
     herds, packages = setup_herds()
     herd = herds[0]
     self.assertEqual(list(Package.objects.for_herd(herd)), packages[:1])
예제 #6
0
파일: test_views.py 프로젝트: oxr463/euscan
 def setUp(self):
     super(HerdsTests, self).setUp()
     self.herds, self.packages = setup_herds()