示例#1
0
 def test_getByBuildFarmJobs(self):
     sprbs = [self.makeSourcePackageRecipeBuild() for i in range(10)]
     Store.of(sprbs[0]).flush()
     self.assertContentEqual(
         sprbs,
         SourcePackageRecipeBuild.getByBuildFarmJobs(
             [sprb.build_farm_job for sprb in sprbs]))
示例#2
0
 def test_getByBuildFarmJobs_empty(self):
     self.assertContentEqual(
         [],
         SourcePackageRecipeBuild.getByBuildFarmJobs([]))