示例#1
0
 def test_get_weight(self, mock):
     '''
     Test if it get a value from etcd, by direct path
     '''
     self.assertTrue(haproxyconn.get_weight('db1.salt.com', 'mysql'))
示例#2
0
 def test_get_weight(self):
     '''
     Test get the weight of a server
     '''
     self.assertTrue(haproxyconn.get_weight('db1.salt.com', 'mysql'))
 def test_get_weight(self):
     """
     Test get the weight of a server
     """
     self.assertTrue(haproxyconn.get_weight("db1.salt.com", "mysql"))