def test_set_dir(self):
        self.motor.direction = m_mod.FORWARD
        self.motor.direction = "forward"
        self.motor.direction = "reverse"
Given a URL path, remove extra '/'s and '.' path elements and collapse
dataset/ETHPy150Open IEEERobotics/bot/tests/test_motor.py/TestNoDirection.test_set_dir--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/http/server.py/_url_collapse_path