urllib changes

This commit is contained in:
Tomas Kopecek 2017-05-03 13:19:18 +02:00
parent 0c0cf92b4c
commit 7d277a8ad5
13 changed files with 50 additions and 55 deletions

View file

@ -10,7 +10,7 @@ class TestClientSession(unittest.TestCase):
@mock.patch('socket.getfqdn')
def test_server_principal_rdns(self, getfqdn):
opts = {'krb_rdns': True}
session = koji.ClientSession('http://koji.example.com/kojihub', opts)
session = koji.ClientSession('http://koji.example.com:30/kojihub', opts)
cprinc = mock.MagicMock()
cprinc.realm = "REALM"
getfqdn.return_value = 'koji02.example.com'