mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
27 lines
1 KiB
Python
27 lines
1 KiB
Python
![]() |
# This file is part of Recent changes Goat compatible Discord webhook (RcGcDw).
|
||
|
#
|
||
|
# RcGcDw is free software: you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU General Public License as published by
|
||
|
# the Free Software Foundation, either version 3 of the License, or
|
||
|
# (at your option) any later version.
|
||
|
#
|
||
|
# RcGcDw is distributed in the hope that it will be useful,
|
||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
# GNU General Public License for more details.
|
||
|
#
|
||
|
# You should have received a copy of the GNU General Public License
|
||
|
# along with RcGcDw. If not, see <http://www.gnu.org/licenses/>.
|
||
|
|
||
|
from unittest import TestCase, main
|
||
|
from src.api.util import sanitize_to_url
|
||
|
|
||
|
|
||
|
class Test(TestCase):
|
||
|
def test_sanitize_to_url(self):
|
||
|
self.assertEqual(sanitize_to_url("Breaking rcgcdw . \ / : ? = ) & - ~ this is a test)"), "Breaking_rcgcdw_._%5C_/_:_%3F_%3D_%29_%26_-_~_this_is_a_test%29")
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
main()
|