Esempio n. 1
0
 def test_list_backends(self):
     '''
     Test listing of all backends
     '''
     self.assertEqual(
         sorted(haproxyconn.list_backends()),
         sorted(['backend-alpha', 'backend-beta', 'backend-gamma']))
Esempio n. 2
0
 def test_list_backends(self, mock):
     '''
     Test listing of all backends
     '''
     self.assertItemsEqual(
         haproxyconn.list_backends(),
         ['backend-alpha', 'backend-beta', 'backend-gamma'])
 def test_list_backends(self):
     """
     Test listing of all backends
     """
     self.assertEqual(
         sorted(haproxyconn.list_backends()),
         sorted(["backend-alpha", "backend-beta", "backend-gamma"]),
     )