def test_list_backends(self): ''' Test listing of all backends ''' self.assertEqual( sorted(haproxyconn.list_backends()), sorted(['backend-alpha', 'backend-beta', 'backend-gamma']))
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"]), )