#546 fix test_krbv_disabled unit test
Merged 6 years ago by mikem. Opened 6 years ago by mikem.

@@ -10,8 +10,9 @@ 

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

fix unit test to handle behavior change from pr #518

Commit a223f29 fixes this pull-request

Pull-Request has been merged by mikem@redhat.com

6 years ago