def test_https(self): distributor = {'config': {constants.CONFIG_SERVE_HTTPS: True}} result = releases._get_protocol_from_distributor(distributor) self.assertEqual(result, 'https')
def test_default(self): result = releases._get_protocol_from_distributor({'config':{}}) # http is currently the default protocol for publishes self.assertEqual(result, 'http')