コード例 #1
0
ファイル: test_templatetags.py プロジェクト: 3nprob/Inboxen
    def test_escapes_in_data(self):
        input_string = "*****@*****.**"
        expected_string = r"me\@inboxen\.org"
        result = inboxen_selector.escape_selector(input_string, as_data=True)

        self.assertEqual(expected_string, result)
コード例 #2
0
ファイル: test_templatetags.py プロジェクト: Inboxen/Inboxen
    def test_escapes_in_data(self):
        input_string = "*****@*****.**"
        expected_string = r"me\@inboxen\.org"
        result = inboxen_selector.escape_selector(input_string, as_data=True)

        self.assertEqual(expected_string, result)
コード例 #3
0
ファイル: test_templatetags.py プロジェクト: 3nprob/Inboxen
    def test_escapes(self):
        input_string = "*****@*****.**"
        expected_string = r"me\\@inboxen\\.org"
        result = inboxen_selector.escape_selector(input_string)

        self.assertEqual(expected_string, result)
コード例 #4
0
ファイル: test_templatetags.py プロジェクト: Inboxen/Inboxen
    def test_escapes(self):
        input_string = "*****@*****.**"
        expected_string = r"me\\@inboxen\\.org"
        result = inboxen_selector.escape_selector(input_string)

        self.assertEqual(expected_string, result)