fix test_krbv_disabled unit test
This commit is contained in:
parent
ffdb5d6790
commit
c2cb0f1184
1 changed files with 2 additions and 1 deletions
|
|
@ -10,8 +10,9 @@ import koji
|
|||
class KrbVTestCase(unittest.TestCase):
|
||||
|
||||
@mock.patch('koji.krbV', new=None)
|
||||
@mock.patch('koji.HTTPKerberosAuth', new=None)
|
||||
def test_krbv_disabled(self):
|
||||
""" Test that when krbV is absent, we behave rationally. """
|
||||
"""Test that when krbV and gssapi are absent, we behave rationally"""
|
||||
self.assertEquals(koji.krbV, None)
|
||||
session = koji.ClientSession('whatever')
|
||||
with self.assertRaises(ImportError):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue