def test_uri(self):
     self.assertEqual(connection._fabric_xmlrpc_uri(_HOST, _PORT),
                      self.fabcnx.uri)
 def test__fabric_xmlrpc_uri(self):
     data = ('example.com', _PORT)
     exp = 'http://{host}:{port}'.format(host=data[0], port=data[1])
     self.assertEqual(exp, connection._fabric_xmlrpc_uri(*data))
Esempio n. 3
0
 def test__fabric_xmlrpc_uri(self):
     data = ('example.com', _PORT)
     exp = 'http://{host}:{port}'.format(host=data[0], port=data[1])
     self.assertEqual(exp, connection._fabric_xmlrpc_uri(*data))
Esempio n. 4
0
 def test_uri(self):
     self.assertEqual(connection._fabric_xmlrpc_uri(_HOST, _PORT),
                      self.fabcnx.uri)
 def test__fabric_xmlrpc_uri(self):
     data = ("example.com", 32274)
     exp = "http://{host}:{port}".format(host=data[0], port=data[1])
     self.assertEqual(exp, connection._fabric_xmlrpc_uri(*data))