def test_https(self):
        distributor = {'config': {constants.CONFIG_SERVE_HTTPS: True}}
        result = releases._get_protocol_from_distributor(distributor)

        self.assertEqual(result, 'https')
Ejemplo n.º 2
0
    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')
Ejemplo n.º 4
0
    def test_default(self):
        result = releases._get_protocol_from_distributor({'config':{}})

        # http is currently the default protocol for publishes
        self.assertEqual(result, 'http')