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