Exemplo n.º 1
0
 def testUsePortAddsPortToUrlCorrectly(self):
     server = Server(use_port = True, server_name = "agrc")
     
     url = server.get_token_url()
             
     print url
     self.assertEqual(url, "http://agrc:6080/arcgis/tokens/generateToken", "port not added correctly")
Exemplo n.º 2
0
 def testUseHttpsReturnsUrlStartingWithHttps(self):
     server = Server(use_https = True)
     
     url = server.get_token_url()
     
     self.assertTrue(url.startswith("https"), "https not added correctly")
Exemplo n.º 3
0
 def testPropertiesBuildUrlCorrectly(self):
     server = Server(server_name = "agrc")
     
     url = server.get_token_url()
     
     self.assertEqual(url, "http://agrc/arcgis/tokens/generateToken", "instance not added correctly")