Ejemplo n.º 1
0
def test_clean_for_html():
    pairs = general_pairs + [
        ("a:b", "a_b"),   # no colons for html use
        ("a-b", "a-b"),   # dashes ok (though need to be replaced in various use locations. ugh.)
        ('a.b', 'a_b'),   # no dots.
    ]
    for input, output in pairs:
        assert_equals(Location.clean_for_html(input), output)
Ejemplo n.º 2
0
def test_clean_for_html():
    pairs = general_pairs + [
        ("a:b", "a_b"),   # no colons for html use
        ("a-b", "a-b"),   # dashes ok (though need to be replaced in various use locations. ugh.)
        ('a.b', 'a_b'),   # no dots.
    ]
    for input, output in pairs:
        assert_equals(Location.clean_for_html(input), output)
 def test_clean_for_html(self, pair):
     self.assertEquals(Location.clean_for_html(pair[0]), pair[1])
Ejemplo n.º 4
0
 def test_clean_for_html(self, pair):
     self.assertEquals(Location.clean_for_html(pair[0]), pair[1])