Exemple #1
0
def test_strip_tags_zaps_comments():
    assert_equal(strip_tags('a<!--b-->'), 'ab')
Exemple #2
0
def test_strip_tags_empty():
    assert_equal(strip_tags(''), '')
Exemple #3
0
def test_strip_tags_zaps_carriage_return():
    assert_equal(strip_tags('a\rb'), 'ab')
Exemple #4
0
def test_strip_tags_zaps_carriage_return():
    assert webob_exc.strip_tags('a\rb') == 'ab'
Exemple #5
0
def test_strip_tags_zaps_comments():
    assert webob_exc.strip_tags('a<!--b-->') == 'ab'
Exemple #6
0
def test_strip_tags_zaps_comments():
    assert webob_exc.strip_tags("a<!--b-->") == "ab"
Exemple #7
0
def test_strip_tags_empty():
    assert webob_exc.strip_tags('') == ''
Exemple #8
0
def test_strip_tags_newline_to_space():
    assert webob_exc.strip_tags("a\nb") == "a b"
Exemple #9
0
def test_strip_tags_zaps_carriage_return():
    assert webob_exc.strip_tags("a\rb") == "ab"
def test_strip_tags_br_to_newline():
    assert_equal(strip_tags("a<br/>b"), "a\nb")
Exemple #11
0
def test_strip_tags_empty():
    assert webob_exc.strip_tags("") == ""
def test_strip_tags_zaps_carriage_return():
    assert_equal(strip_tags("a\rb"), "ab")
def test_strip_tags_newline_to_space():
    assert_equal(strip_tags("a\nb"), "a b")
def test_strip_tags_empty():
    assert_equal(strip_tags(""), "")
Exemple #15
0
def test_strip_tags_empty():
    assert webob_exc.strip_tags("") == ""
Exemple #16
0
def test_strip_tags_br_to_newline():
    assert webob_exc.strip_tags("a<br/>b") == "a\nb"
Exemple #17
0
def test_strip_tags_zaps_carriage_return():
    assert webob_exc.strip_tags("a\rb") == "ab"
Exemple #18
0
def test_strip_tags_zaps_comments():
    assert webob_exc.strip_tags("a<!--b-->") == "ab"
def test_strip_tags_zaps_tags():
    assert_equal(strip_tags("foo<bar>baz</bar>"), "foobaz")
Exemple #20
0
def test_strip_tags_zaps_tags():
    assert webob_exc.strip_tags("foo<bar>baz</bar>") == "foobaz"
Exemple #21
0
def test_strip_tags_newline_to_space():
    assert webob_exc.strip_tags('a\nb') == 'a b'
Exemple #22
0
def test_strip_tags_empty():
    assert webob_exc.strip_tags('') == ''
Exemple #23
0
def test_strip_tags_br_to_newline():
    assert webob_exc.strip_tags('a<br/>b') == 'a\nb'
Exemple #24
0
def test_strip_tags_newline_to_space():
    assert webob_exc.strip_tags('a\nb') == 'a b'
Exemple #25
0
def test_strip_tags_zaps_tags():
    assert webob_exc.strip_tags('foo<bar>baz</bar>') == 'foobaz'
Exemple #26
0
def test_strip_tags_zaps_carriage_return():
    assert webob_exc.strip_tags('a\rb') == 'ab'
Exemple #27
0
def test_strip_tags_newline_to_space():
    assert_equal(strip_tags('a\nb'), 'a b')
Exemple #28
0
def test_strip_tags_br_to_newline():
    assert webob_exc.strip_tags('a<br/>b') == 'a\nb'
Exemple #29
0
def test_strip_tags_br_to_newline():
    assert_equal(strip_tags('a<br/>b'), 'a\nb')
Exemple #30
0
def test_strip_tags_zaps_comments():
    assert webob_exc.strip_tags('a<!--b-->') == 'ab'
Exemple #31
0
def test_strip_tags_zaps_tags():
    assert_equal(strip_tags('foo<bar>baz</bar>'), 'foobaz')
Exemple #32
0
def test_strip_tags_zaps_tags():
    assert webob_exc.strip_tags('foo<bar>baz</bar>') == 'foobaz'
Exemple #33
0
def test_strip_tags_newline_to_space():
    assert webob_exc.strip_tags("a\nb") == "a b"
Exemple #34
0
def test_strip_tags_empty():
    assert_equal(webob_exc.strip_tags(''), '')
Exemple #35
0
def test_strip_tags_br_to_newline():
    assert webob_exc.strip_tags("a<br/>b") == "a\nb"
Exemple #36
0
def test_strip_tags_empty():
    assert_equal(webob_exc.strip_tags(''), '')
Exemple #37
0
def test_strip_tags_zaps_tags():
    assert webob_exc.strip_tags("foo<bar>baz</bar>") == "foobaz"
def test_strip_tags_zaps_comments():
    assert_equal(strip_tags("a<!--b-->"), "ab")