glusterfs

Форк
0
/
test_syncdutils.py 
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

11
import unittest
12

13
from syncdaemon import syncdutils
14

15

16
class SyncdutilsTestCase(unittest.TestCase):
17
    def setUp(self):
18
        pass
19

20
    def tearDown(self):
21
        pass
22

23
    def test_escape(self):
24
        self.assertEqual(syncdutils.escape("http://gluster.org"),
25
                         "http%3A%2F%2Fgluster.org")
26

27
    def test_unescape(self):
28
        self.assertEqual(syncdutils.unescape("http%3A%2F%2Fgluster.org"),
29
                         "http://gluster.org")
30

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.