def check_many_dots(self): path = "..a.....b.c...d." assert _escape_pathname(path) == "a.b.c.d"
def check_negative(self): # it's better if negative numbers are preserved path = "x= -2, y=-50" assert _escape_pathname(path) == "x=-2.y=-50"
def check_illegal_path(self): path = "\\/.a=2, b=x/y/z" assert _escape_pathname(path) == "a=2.b=x.y.z"