def test_validate_lease_key(self): build = test_util.build() build.lease_key = 123 with self.assertRaises(errors.InvalidInputError): swarming.validate_build(build)
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)
def test_validate(self): build = test_util.build() swarming.validate_build(build)