glusterfs
29 строк · 832.0 Байт
1#
2# Copyright (c) 2011-2014 Red Hat, Inc. <http://www.redhat.com>
3# This file is part of GlusterFS.
4
5# This file is licensed to you under your choice of the GNU Lesser
6# General Public License, version 3 or any later version (LGPLv3 or
7# later), or the GNU General Public License, version 2 (GPLv2), in all
8# cases as published by the Free Software Foundation.
9#
10
11import unittest12
13from syncdaemon import syncdutils14
15
16class SyncdutilsTestCase(unittest.TestCase):17def setUp(self):18pass19
20def tearDown(self):21pass22
23def test_escape(self):24self.assertEqual(syncdutils.escape("http://gluster.org"),25"http%3A%2F%2Fgluster.org")26
27def test_unescape(self):28self.assertEqual(syncdutils.unescape("http%3A%2F%2Fgluster.org"),29"http://gluster.org")30