Exemplo n.º 1
0
 def test_all_fields(self):
     self.assertEqual(
         binding._authority(
             scheme="http", 
             host="splunk.utopia.net",
             port="471"),
         "http://splunk.utopia.net:471")
Exemplo n.º 2
0
 def test_ipv4_host(self):
     self.assertEqual(
         binding._authority(
             host="splunk.utopia.net"),
         "https://splunk.utopia.net:8089")
Exemplo n.º 3
0
 def test_ipv6_host(self):
     self.assertEqual(
         binding._authority(
             host="2001:0db8:85a3:0000:0000:8a2e:0370:7334"),
         "https://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:8089")
Exemplo n.º 4
0
 def test_authority_default(self):
     self.assertEqual(binding._authority(), 
                      "https://localhost:8089")
Exemplo n.º 5
0
 def test_all_fields(self):
     self.assertEqual(
         binding._authority(scheme="http",
                            host="splunk.utopia.net",
                            port="471"), "http://splunk.utopia.net:471")
Exemplo n.º 6
0
 def test_ipv6_host(self):
     self.assertEqual(
         binding._authority(host="2001:0db8:85a3:0000:0000:8a2e:0370:7334"),
         "https://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:8089")
Exemplo n.º 7
0
 def test_ipv4_host(self):
     self.assertEqual(binding._authority(host="splunk.utopia.net"),
                      "https://splunk.utopia.net:8089")
Exemplo n.º 8
0
 def test_authority_default(self):
     self.assertEqual(binding._authority(), "https://localhost:8089")