Implemented tuple serialization
[sandbox] / bad_sanitizers / breaking_bad_sanitizers.py
1 import unittest
2 import urllib.parse
3
4 import bad_sanitizers
5
6 class TestBreakingStrings(unittest.TestCase):
7     def test_breaking_string_for_bad_sanitizer_1(self):
8         desired_result = '"><script>alert("foo")</script>'
9
10         breaking_string = '%22>%3Cscript>alert(%22foo%22)</script>'
11
12         print(breaking_string)
13
14         self.assertEqual(
15             bad_sanitizers.sanitizer_1(breaking_string),
16             desired_result,
17         )
18
19 unittest.main()