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])