コード例 #1
0
 def test_validate_lease_key(self):
     build = test_util.build()
     build.lease_key = 123
     with self.assertRaises(errors.InvalidInputError):
         swarming.validate_build(build)
コード例 #2
0
 def test_validate_fails(self, build_params):
     build = test_util.build(for_creation=True, **build_params)
     with self.assertRaises(errors.InvalidInputError):
         swarming.validate_build(build)
コード例 #3
0
 def test_validate(self):
     build = test_util.build()
     swarming.validate_build(build)