Merge "Make test_revoke_cert_project_not_found_chdir_fails deterministic"

This commit is contained in:
Jenkins 2015-09-23 10:49:41 +00:00 committed by Gerrit Code Review
commit 7e0df8d3b7
1 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Tests for Crypto module.
"""
import os
import uuid
from cryptography.hazmat import backends
from cryptography.hazmat.primitives import serialization
@ -164,8 +165,9 @@ class RevokeCertsTest(test.TestCase):
2, 'test_file')
def test_revoke_cert_project_not_found_chdir_fails(self, *args, **kargs):
self.flags(use_project_ca=True)
self.assertRaises(exception.ProjectNotFound, crypto.revoke_cert,
2, 'test_file')
str(uuid.uuid4()), 'test_file')
class CertExceptionTests(test.TestCase):