fix test_krbv_disabled unit test

This commit is contained in:
Mike McLean 2017-08-08 11:38:06 -04:00
parent ffdb5d6790
commit c2cb0f1184

View file

@ -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):