Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Commit de0c65f

Browse files
committed
test rsa.Key verification
1 parent 336cb9e commit de0c65f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

chef/tests/test_api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ def test_env_variables(self):
2626
self.assertEqual(api.client, 'foobar')
2727
finally:
2828
del os.environ['_PYCHEF_TEST_']
29+
30+
def test_bad_key_raises(self):
31+
invalids = [None, '']
32+
for item in invalids:
33+
self.assertRaises(
34+
ValueError, ChefAPI, 'foobar', item, 'user')

0 commit comments

Comments
 (0)