Ejemplo n.º 1
0
def test_clean_for_url_name():
    pairs = general_pairs + [
        ('a:b', 'a:b'),  # colons ok in names
        ('a-b', 'a-b'),  # dashes ok in names
        ('a.b', 'a.b'),  # dot ok in names
    ]
    for input, output in pairs:
        assert_equals(Location.clean_for_url_name(input), output)
Ejemplo n.º 2
0
def test_clean_for_url_name():
    pairs = general_pairs + [
        ('a:b', 'a:b'),  # colons ok in names
        ('a-b', 'a-b'),  # dashes ok in names
        ('a.b', 'a.b'),  # dot ok in names
    ]
    for input, output in pairs:
        assert_equals(Location.clean_for_url_name(input), output)
 def test_clean_for_url_name(self, pair):
     self.assertEquals(Location.clean_for_url_name(pair[0]), pair[1])
Ejemplo n.º 4
0
 def test_clean_for_url_name(self, pair):
     self.assertEquals(Location.clean_for_url_name(pair[0]), pair[1])