Incorrect variable name is declared

Incorrect variable name is declared in
test_validate_key_cert_key_cant_read() method.

In the second 'with' statement, changed variable name
from keyf to certf.

Closes-Bug: #1482144

Change-Id: Ibf3168702d13d1737f2a1978fdea6c357eae2467
This commit is contained in:
Kentaro Takeda 2015-08-06 09:43:48 +00:00
parent 09aedd3400
commit 7c4d1644e1
1 changed files with 2 additions and 2 deletions

View File

@ -307,11 +307,11 @@ class TestUtils(test_utils.BaseTestCase):
def test_validate_key_cert_key_cant_read(self):
with tempfile.NamedTemporaryFile('w+') as keyf:
with tempfile.NamedTemporaryFile('w+') as keyf:
with tempfile.NamedTemporaryFile('w+') as certf:
os.chmod(keyf.name, 0)
self.assertRaises(RuntimeError,
utils.validate_key_cert,
keyf.name, keyf.name)
keyf.name, certf.name)
def test_invalid_digest_algorithm(self):
self.config(digest_algorithm='fake_algorithm')